MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / ret

Method ret

python/mediumlevelil.py:4576–4586  ·  view source on GitHub ↗

``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)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

exprMethod · 0.95
add_operand_listMethod · 0.95

Tested by

no test coverage detected