``ret`` returns an expression which jumps (branches) to the calling function, returning a result specified by the expressions in ``sources``. :param List[ExpressionIndex] sources: list of returned expressions :param ILSourceLocation loc: location of returned expression :return: The expre
(self, sources: List[ExpressionIndex], loc: Optional['ILSourceLocation'] = None)
| 4574 | ) |
| 4575 | |
| 4576 | def ret(self, sources: List[ExpressionIndex], loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex: |
| 4577 | """ |
| 4578 | ``ret`` returns an expression which jumps (branches) to the calling function, |
| 4579 | returning a result specified by the expressions in ``sources``. |
| 4580 | |
| 4581 | :param List[ExpressionIndex] sources: list of returned expressions |
| 4582 | :param ILSourceLocation loc: location of returned expression |
| 4583 | :return: The expression ``return sources...`` |
| 4584 | :rtype: ExpressionIndex |
| 4585 | """ |
| 4586 | return self.expr(MediumLevelILOperation.MLIL_RET, len(sources), self.add_operand_list(sources), size=0, source_location=loc) |
| 4587 | |
| 4588 | def no_ret(self, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex: |
| 4589 | """ |
nothing calls this directly
no test coverage detected