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

Method merged_vars

python/function.py:1615–1632  ·  view source on GitHub ↗

Map of merged variables, organized by target variable (read-only). Use ``merge_vars`` and ``unmerge_vars`` to update merged variables.

(self)

Source from the content-addressed store, hash-verified

1613
1614 @property
1615 def merged_vars(self) -> Dict['variable.Variable', List['variable.Variable']]:
1616 """
1617 Map of merged variables, organized by target variable (read-only). Use ``merge_vars`` and
1618 ``unmerge_vars`` to update merged variables.
1619 """
1620 count = ctypes.c_ulonglong()
1621 data = core.BNGetMergedVariables(self.handle, count)
1622
1623 result = {}
1624 for i in range(count.value):
1625 target = Variable.from_BNVariable(self, data[i].target)
1626 sources = []
1627 for j in range(data[i].sourceCount):
1628 sources.append(Variable.from_BNVariable(self, data[i].sources[j]))
1629 result[target] = sources
1630
1631 core.BNFreeMergedVariableList(data, count.value)
1632 return result
1633
1634 @property
1635 def split_vars(self) -> List['variable.Variable']:

Callers

nothing calls this directly

Calls 2

from_BNVariableMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected