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

Method regs

python/lowlevelil.py:3563–3578  ·  view source on GitHub ↗

List of registers used in this IL

(self)

Source from the content-addressed store, hash-verified

3561
3562 @property
3563 def regs(self) -> List[SSARegister]:
3564 """ List of registers used in this IL """
3565 if self.il_form == FunctionGraphType.LowLevelILSSAFormFunctionGraph:
3566 # If this is a LLIL SSA function, then its registers is SSA registers
3567 return self.ssa_regs
3568
3569 count = ctypes.c_ulonglong()
3570 registers = core.BNGetLowLevelRegisters(self.handle, count)
3571 assert registers is not None, "core.BNGetLowLevelRegisters returned None"
3572 result = []
3573 try:
3574 for var_i in range(count.value):
3575 result.append(ILRegister(self.arch, registers[var_i]))
3576 return result
3577 finally:
3578 core.BNFreeLLILVariablesList(registers)
3579
3580 @property
3581 def is_thunk(self) -> bool:

Callers

nothing calls this directly

Calls 2

ILRegisterClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected