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

Method reg_stacks

python/lowlevelil.py:3593–3608  ·  view source on GitHub ↗

List of register stacks used in this IL

(self)

Source from the content-addressed store, hash-verified

3591
3592 @property
3593 def reg_stacks(self) -> List[SSARegisterStack]:
3594 """ List of register stacks used in this IL """
3595 if self.il_form == FunctionGraphType.LowLevelILSSAFormFunctionGraph:
3596 # If this is a LLIL SSA function, then its registers is SSA registers
3597 return self.ssa_reg_stacks
3598
3599 count = ctypes.c_ulonglong()
3600 registerStacks = core.BNGetLowLevelRegisterStacks(self.handle, count)
3601 assert registerStacks is not None, "core.BNGetLowLevelRegisterStacks returned None"
3602 result = []
3603 try:
3604 for var_i in range(count.value):
3605 result.append(ILRegisterStack(self.arch, registerStacks[var_i]))
3606 return result
3607 finally:
3608 core.BNFreeLLILVariablesList(registerStacks)
3609
3610 @property
3611 def flags(self) -> List[SSAFlag]:

Callers

nothing calls this directly

Calls 2

ILRegisterStackClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected