Ejemplo n.º 1
0
	def get_instruction_start(self, addr, arch = None):
		if arch is None:
			arch = self.arch
		result = core.BNMediumLevelILGetInstructionStart(self.handle, arch.handle, addr)
		if result >= core.BNGetMediumLevelILInstructionCount(self.handle):
			return None
		return result
Ejemplo n.º 2
0
	def get_ssa_var_definition(self, ssa_var):
		var_data = core.BNVariable()
		var_data.type = ssa_var.var.source_type
		var_data.index = ssa_var.var.index
		var_data.storage = ssa_var.var.storage
		result = core.BNGetMediumLevelILSSAVarDefinition(self.handle, var_data, ssa_var.version)
		if result >= core.BNGetMediumLevelILInstructionCount(self.handle):
			return None
		return result
Ejemplo n.º 3
0
 def get_ssa_memory_definition(self, version):
     result = core.BNGetMediumLevelILSSAMemoryDefinition(
         self.handle, version)
     if result >= core.BNGetMediumLevelILInstructionCount(self.handle):
         return None
     return result
Ejemplo n.º 4
0
 def __len__(self):
     return int(core.BNGetMediumLevelILInstructionCount(self.handle))