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

Method _make_blocks

python/basicblock.py:419–429  ·  view source on GitHub ↗
(self, blocks, count: int)

Source from the content-addressed store, hash-verified

417 return core.BNBasicBlockHasInvalidInstructions(self.handle)
418
419 def _make_blocks(self, blocks, count: int) -> List['BasicBlock']:
420 assert blocks is not None, "core returned empty block list"
421 try:
422 result: List['BasicBlock'] = []
423 for i in range(0, count):
424 handle = core.BNNewBasicBlockReference(blocks[i])
425 assert handle is not None
426 result.append(self._create_instance(handle))
427 return result
428 finally:
429 core.BNFreeBasicBlockList(blocks, count)
430
431 @property
432 def dominators(self) -> List['BasicBlock']:

Callers 8

dominatorsMethod · 0.95
post_dominatorsMethod · 0.95
strict_dominatorsMethod · 0.95
dominance_frontierMethod · 0.95

Calls 2

_create_instanceMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected