MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / __eq__

Method __eq__

python/lowlevelil.py:108–115  ·  view source on GitHub ↗
(self, other: Union[str, 'ILRegister'])

Source from the content-addressed store, hash-verified

106 return self.index
107
108 def __eq__(self, other: Union[str, 'ILRegister']):
109 if isinstance(other, str) and other in self.arch.regs:
110 index = self.arch.regs[architecture.RegisterName(other)].index
111 assert index is not None
112 other = ILRegister(self.arch, index)
113 elif not isinstance(other, self.__class__):
114 return NotImplemented
115 return (self.arch, self.index) == (other.arch, other.index)
116
117 @property
118 def info(self) -> 'architecture.RegisterInfo':

Callers

nothing calls this directly

Calls 1

ILRegisterClass · 0.85

Tested by

no test coverage detected