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

Method reg_stack_pop

python/lowlevelil.py:4406–4421  ·  view source on GitHub ↗

``reg_stack_pop`` returns the top entry of size ``size`` in register stack with name ``reg_stack``, and removes the entry from the stack :param int size: the size of the register in bytes :param str reg_stack: the name of the register stack :param ILSourceLocation loc: location of return

(
		self, size: int, reg_stack: 'architecture.RegisterStackType',
		loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

4404 return self.expr(LowLevelILOperation.LLIL_REG_STACK_REL, _reg_stack, entry, size=size, source_location=loc)
4405
4406 def reg_stack_pop(
4407 self, size: int, reg_stack: 'architecture.RegisterStackType',
4408 loc: Optional['ILSourceLocation'] = None
4409 ) -> ExpressionIndex:
4410 """
4411 ``reg_stack_pop`` returns the top entry of size ``size`` in register stack with name ``reg_stack``, and
4412 removes the entry from the stack
4413
4414 :param int size: the size of the register in bytes
4415 :param str reg_stack: the name of the register stack
4416 :param ILSourceLocation loc: location of returned expression
4417 :return: The expression ``reg_stack.pop``
4418 :rtype: ExpressionIndex
4419 """
4420 _reg_stack = ExpressionIndex(self.arch.get_reg_stack_index(reg_stack))
4421 return self.expr(LowLevelILOperation.LLIL_REG_STACK_POP, _reg_stack, size=size, source_location=loc)
4422
4423 def const(self, size: int, value: int, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
4424 """

Callers 1

copy_expr_toMethod · 0.80

Calls 2

exprMethod · 0.95
get_reg_stack_indexMethod · 0.80

Tested by

no test coverage detected