``copy_expr`` adds an expression to the function which is equivalent to the given expression :param MediumLevelILInstruction original: the original IL Instruction you want to copy :return: The index of the newly copied expression
(self, original: MediumLevelILInstruction)
| 3552 | return MediumLevelILInstruction.create(self, index) |
| 3553 | |
| 3554 | def copy_expr(self, original: MediumLevelILInstruction) -> ExpressionIndex: |
| 3555 | """ |
| 3556 | ``copy_expr`` adds an expression to the function which is equivalent to the given expression |
| 3557 | |
| 3558 | :param MediumLevelILInstruction original: the original IL Instruction you want to copy |
| 3559 | :return: The index of the newly copied expression |
| 3560 | """ |
| 3561 | return self.expr( |
| 3562 | original.operation, |
| 3563 | original.raw_operands[0], |
| 3564 | original.raw_operands[1], |
| 3565 | original.raw_operands[2], |
| 3566 | original.raw_operands[3], |
| 3567 | original.raw_operands[4], |
| 3568 | original.size, |
| 3569 | original.source_location |
| 3570 | ) |
| 3571 | |
| 3572 | def replace_expr(self, original: InstructionOrExpression, new: InstructionOrExpression) -> None: |
| 3573 | """ |