``copy_to`` deep copies an expression into a new IL function. If provided, the function ``sub_expr_handler`` will be called on every copied sub-expression .. warning:: This function should ONLY be called as a part of a lifter or workflow. It will otherwise not do anything useful as analysis
( self, dest: 'LowLevelILFunction', sub_expr_handler: Optional[Callable[['LowLevelILInstruction'], ExpressionIndex]] = None )
| 513 | return ILInstruction[core_inst.operation](func, expr_index, core_inst, instr_index) # type: ignore |
| 514 | |
| 515 | def copy_to( |
| 516 | self, dest: 'LowLevelILFunction', |
| 517 | sub_expr_handler: Optional[Callable[['LowLevelILInstruction'], ExpressionIndex]] = None |
| 518 | ) -> ExpressionIndex: |
| 519 | """ |
| 520 | ``copy_to`` deep copies an expression into a new IL function. |
| 521 | If provided, the function ``sub_expr_handler`` will be called on every copied sub-expression |
| 522 | |
| 523 | .. warning:: This function should ONLY be called as a part of a lifter or workflow. It will otherwise not do anything useful as analysis will not be running. |
| 524 | |
| 525 | :param LowLevelILFunction dest: Function to copy the expression to |
| 526 | :param sub_expr_handler: Optional function to call on every copied sub-expression |
| 527 | :return: Index of the copied expression in the target function |
| 528 | """ |
| 529 | return self.function.copy_expr_to(self, dest, sub_expr_handler) |
| 530 | |
| 531 | def __str__(self): |
| 532 | tokens = self.tokens |
no test coverage detected