``copy_expr`` adds an expression to the function which is equivalent to the given 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 will not be running. :param LowLevelILInstruction original: t
(self, original: LowLevelILInstruction)
| 3867 | return LowLevelILInstruction.create(self, index) |
| 3868 | |
| 3869 | def copy_expr(self, original: LowLevelILInstruction) -> ExpressionIndex: |
| 3870 | """ |
| 3871 | ``copy_expr`` adds an expression to the function which is equivalent to the given expression |
| 3872 | |
| 3873 | .. 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. |
| 3874 | |
| 3875 | :param LowLevelILInstruction original: the original IL Instruction you want to copy |
| 3876 | :return: The index of the newly copied expression |
| 3877 | """ |
| 3878 | return self.expr( |
| 3879 | original.operation, |
| 3880 | original.raw_operands[0], |
| 3881 | original.raw_operands[1], |
| 3882 | original.raw_operands[2], |
| 3883 | original.raw_operands[3], |
| 3884 | original.size, |
| 3885 | original.raw_flags, |
| 3886 | original.source_location |
| 3887 | ) |
| 3888 | |
| 3889 | def replace_expr(self, original: InstructionOrExpression, new: InstructionOrExpression) -> None: |
| 3890 | """ |