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

Method get_label_for_address

python/lowlevelil.py:5973–5987  ·  view source on GitHub ↗

``get_label_for_address`` returns the LowLevelILLabel for the given Architecture ``arch`` and IL address ``addr``. :param Architecture arch: :param int addr: IL Address label to retrieve :return: the LowLevelILLabel for the given IL address :rtype: LowLevelILLabel

(self, arch: 'architecture.Architecture', addr: int)

Source from the content-addressed store, hash-verified

5971 core.BNAddLowLevelILLabelForAddress(self.handle, arch, addr)
5972
5973 def get_label_for_address(self, arch: 'architecture.Architecture', addr: int) -> Optional[LowLevelILLabel]:
5974 """
5975 ``get_label_for_address`` returns the LowLevelILLabel for the given Architecture ``arch`` and IL address ``addr``.
5976
5977 :param Architecture arch:
5978 :param int addr: IL Address label to retrieve
5979 :return: the LowLevelILLabel for the given IL address
5980 :rtype: LowLevelILLabel
5981 """
5982 if arch is not None:
5983 arch = arch.handle
5984 label = core.BNGetLowLevelILLabelForAddress(self.handle, arch, addr)
5985 if label is None:
5986 return None
5987 return LowLevelILLabel(label)
5988
5989 def get_ssa_instruction_index(self, instr: InstructionIndex) -> InstructionIndex:
5990 return core.BNGetLowLevelILSSAInstructionIndex(self.handle, instr)

Callers 2

cond_branchMethod · 0.80
jumpMethod · 0.80

Calls 1

LowLevelILLabelClass · 0.70

Tested by

no test coverage detected