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

Method ret

python/highlevelil.py:3115–3125  ·  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

3113 return self.expr(HighLevelILOperation.HLIL_JUMP, dest, source_location=loc)
3114
3115 def ret(self, sources: List[ExpressionIndex], loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
3116 """
3117 ``ret`` returns an expression which jumps (branches) to the calling function,
3118 returning a result specified by the expressions in ``sources``.
3119
3120 :param List[ExpressionIndex] sources: list of returned expressions
3121 :param ILSourceLocation loc: location of returned expression
3122 :return: The expression ``return sources...``
3123 :rtype: ExpressionIndex
3124 """
3125 return self.expr(HighLevelILOperation.HLIL_RET, len(sources), self.add_operand_list(sources), source_location=loc)
3126
3127 def no_ret(self, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
3128 """

Callers

nothing calls this directly

Calls 2

exprMethod · 0.95
add_operand_listMethod · 0.95

Tested by

no test coverage detected