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

Method aliased_vars

python/mediumlevelil.py:5572–5594  ·  view source on GitHub ↗

This returns a list of Variables that are taken reference to and used elsewhere. You may also wish to consider `MediumLevelIlFunction.vars` and `MediumLevelIlFunction.source_function.parameter_vars`

(self)

Source from the content-addressed store, hash-verified

5570
5571 @property
5572 def aliased_vars(self) -> List["variable.Variable"]:
5573 """This returns a list of Variables that are taken reference to and used elsewhere. You may also wish to consider `MediumLevelIlFunction.vars` and `MediumLevelIlFunction.source_function.parameter_vars`"""
5574 if self.source_function is None:
5575 return []
5576
5577 if self.il_form in [
5578 FunctionGraphType.MediumLevelILFunctionGraph, FunctionGraphType.MediumLevelILSSAFormFunctionGraph
5579 ]:
5580 count = ctypes.c_ulonglong()
5581 core_variables = core.BNGetMediumLevelILAliasedVariables(self.handle, count)
5582 assert core_variables is not None, "core.BNGetMediumLevelILAliasedVariables returned None"
5583 try:
5584 result = []
5585 for var_i in range(count.value):
5586 result.append(
5587 variable.Variable(
5588 self, core_variables[var_i].type, core_variables[var_i].index, core_variables[var_i].storage
5589 )
5590 )
5591 return result
5592 finally:
5593 core.BNFreeVariableList(core_variables)
5594 return []
5595
5596 @property
5597 def ssa_vars(self) -> List[SSAVariable]:

Callers

nothing calls this directly

Calls 2

VariableMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected