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

Method call_stack_adjust

python/lowlevelil.py:5097–5108  ·  view source on GitHub ↗

``call_stack_adjust`` returns an expression which first pushes the address of the next instruction onto the stack then jumps (branches) to the expression ``dest``. After the function exits, ``stack_adjust`` is added to the stack pointer register. :param ExpressionIndex dest: the expression

(self, dest: ExpressionIndex, stack_adjust: int, loc: Optional['ILSourceLocation'] = None)

Source from the content-addressed store, hash-verified

5095 return self.expr(LowLevelILOperation.LLIL_CALL, dest, source_location=loc)
5096
5097 def call_stack_adjust(self, dest: ExpressionIndex, stack_adjust: int, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
5098 """
5099 ``call_stack_adjust`` returns an expression which first pushes the address of the next instruction onto the stack
5100 then jumps (branches) to the expression ``dest``. After the function exits, ``stack_adjust`` is added to the
5101 stack pointer register.
5102
5103 :param ExpressionIndex dest: the expression to call
5104 :param ILSourceLocation loc: location of returned expression
5105 :return: The expression ``call(dest), stack += stack_adjust``
5106 :rtype: ExpressionIndex
5107 """
5108 return self.expr(LowLevelILOperation.LLIL_CALL_STACK_ADJUST, dest, stack_adjust, source_location=loc)
5109
5110 def tailcall(self, dest: ExpressionIndex, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
5111 """

Callers 1

copy_expr_toMethod · 0.80

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected