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

Method get_var_ssa_list

python/highlevelil.py:748–762  ·  view source on GitHub ↗
(self, operand_index1: int, _: int)

Source from the content-addressed store, hash-verified

746 core.BNHighLevelILFreeOperandList(operand_list)
747
748 def get_var_ssa_list(self, operand_index1: int, _: int) -> List['mediumlevelil.SSAVariable']:
749 count = ctypes.c_ulonglong()
750 operand_list = core.BNHighLevelILGetOperandList(self.function.handle, self.expr_index, operand_index1, count)
751 assert operand_list is not None, "core.BNHighLevelILGetOperandList returned None"
752 value = []
753 try:
754 for j in range(count.value // 2):
755 var_id = operand_list[j * 2]
756 var_version = operand_list[(j*2) + 1]
757 value.append(
758 mediumlevelil.SSAVariable(variable.Variable.from_identifier(self.function, var_id), var_version)
759 )
760 return value
761 finally:
762 core.BNMediumLevelILFreeOperandList(operand_list)
763
764 def get_member_index(self, operand_index: int) -> Optional[int]:
765 value = self.core_instr.operands[operand_index]

Callers 1

srcMethod · 0.80

Calls 3

SSAVariableMethod · 0.80
appendMethod · 0.45
from_identifierMethod · 0.45

Tested by

no test coverage detected