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

Method from_instruction

python/commonil.py:224–233  ·  view source on GitHub ↗

Get the source location of a given instruction :param instr: Instruction, Low, Medium, or High level :return: Its location

(
			cls,
			instr: Union['lowlevelil.LowLevelILInstruction', 'mediumlevelil.MediumLevelILInstruction', 'highlevelil.HighLevelILInstruction']
	)

Source from the content-addressed store, hash-verified

222
223 @classmethod
224 def from_instruction(
225 cls,
226 instr: Union['lowlevelil.LowLevelILInstruction', 'mediumlevelil.MediumLevelILInstruction', 'highlevelil.HighLevelILInstruction']
227 ) -> 'ILSourceLocation':
228 """
229 Get the source location of a given instruction
230 :param instr: Instruction, Low, Medium, or High level
231 :return: Its location
232 """
233 return cls(instr.address, instr.source_operand)
234

Callers 5

source_locationMethod · 0.80
copy_expr_toMethod · 0.80
source_locationMethod · 0.80
source_locationMethod · 0.80
translate_instrFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected