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

Method __contains__

python/function.py:500–503  ·  view source on GitHub ↗
(self, value: Union[basicblock.BasicBlock, int])

Source from the content-addressed store, hash-verified

498 return result
499
500 def __contains__(self, value: Union[basicblock.BasicBlock, int]):
501 if isinstance(value, basicblock.BasicBlock):
502 return value.function == self
503 return self in [block.function for block in self.view.get_basic_blocks_at(int(value))]
504
505 @classmethod
506 def _unregister(cls, func: 'core.BNFunction') -> None:

Callers

nothing calls this directly

Calls 1

get_basic_blocks_atMethod · 0.80

Tested by

no test coverage detected