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

Method reg_stack_top_relative

python/lowlevelil.py:4388–4404  ·  view source on GitHub ↗

``reg_stack_top_relative`` returns a register stack entry of size ``size`` at top-relative location ``entry`` in register stack with name ``reg_stack`` :param int size: the size of the register in bytes :param str reg_stack: the name of the register stack :param ExpressionIndex entry: an

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

Source from the content-addressed store, hash-verified

4386 return self.expr(LowLevelILOperation.LLIL_REG_SPLIT, _hi, _lo, size=size, source_location=loc)
4387
4388 def reg_stack_top_relative(
4389 self, size: int, reg_stack: 'architecture.RegisterStackType', entry: ExpressionIndex,
4390 loc: Optional['ILSourceLocation'] = None
4391 ) -> ExpressionIndex:
4392 """
4393 ``reg_stack_top_relative`` returns a register stack entry of size ``size`` at top-relative
4394 location ``entry`` in register stack with name ``reg_stack``
4395
4396 :param int size: the size of the register in bytes
4397 :param str reg_stack: the name of the register stack
4398 :param ExpressionIndex entry: an expression for which stack entry to fetch
4399 :param ILSourceLocation loc: location of returned expression
4400 :return: The expression ``reg_stack[entry]``
4401 :rtype: ExpressionIndex
4402 """
4403 _reg_stack = self.arch.get_reg_stack_index(reg_stack)
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',

Callers 1

copy_expr_toMethod · 0.80

Calls 2

exprMethod · 0.95
get_reg_stack_indexMethod · 0.80

Tested by

no test coverage detected