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

Method create

python/lowlevelil.py:506–513  ·  view source on GitHub ↗
(
	    cls, func: 'LowLevelILFunction', expr_index: ExpressionIndex, instr_index: Optional[InstructionIndex] = None
	)

Source from the content-addressed store, hash-verified

504
505 @classmethod
506 def create(
507 cls, func: 'LowLevelILFunction', expr_index: ExpressionIndex, instr_index: Optional[InstructionIndex] = None
508 ) -> 'LowLevelILInstruction':
509 assert func.arch is not None, "Attempted to create IL instruction with function missing an Architecture"
510 inst = core.BNGetLowLevelILByIndex(func.handle, expr_index)
511 assert inst is not None, "core.BNGetLowLevelILByIndex returned None"
512 core_inst = CoreLowLevelILInstruction.from_BNLowLevelILInstruction(inst)
513 return ILInstruction[core_inst.operation](func, expr_index, core_inst, instr_index) # type: ignore
514
515 def copy_to(
516 self, dest: 'LowLevelILFunction',

Callers 9

ssa_formMethod · 0.45
non_ssa_formMethod · 0.45
medium_level_ilMethod · 0.45
mlilsMethod · 0.45
_get_exprMethod · 0.45
_get_expr_listMethod · 0.45
__getitem__Method · 0.45
get_exprMethod · 0.45

Calls 1

Tested by

no test coverage detected