( cls, func: 'LowLevelILFunction', expr_index: ExpressionIndex, instr_index: Optional[InstructionIndex] = None )
| 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', |
no test coverage detected