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

Method var_split

python/mediumlevelil.py:3768–3781  ·  view source on GitHub ↗

``var_split`` combines variables ``hi`` and ``lo`` of size ``size`` into an expression of size ``2*size`` :param int size: the size of each variable in bytes :param Variable hi: the variable holding high part of value :param Variable lo: the variable holding low part of value :param ILSo

(
		self, size: int, hi: 'variable.Variable', lo: 'variable.Variable', loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

3766 return self.expr(MediumLevelILOperation.MLIL_VAR_FIELD, src.identifier, offset, size=size, source_location=loc)
3767
3768 def var_split(
3769 self, size: int, hi: 'variable.Variable', lo: 'variable.Variable', loc: Optional['ILSourceLocation'] = None
3770 ) -> ExpressionIndex:
3771 """
3772 ``var_split`` combines variables ``hi`` and ``lo`` of size ``size`` into an expression of size ``2*size``
3773
3774 :param int size: the size of each variable in bytes
3775 :param Variable hi: the variable holding high part of value
3776 :param Variable lo: the variable holding low part of value
3777 :param ILSourceLocation loc: location of returned expression
3778 :return: The expression ``hi:lo``
3779 :rtype: ExpressionIndex
3780 """
3781 return self.expr(MediumLevelILOperation.MLIL_VAR_SPLIT, hi.identifier, lo.identifier, size=size, source_location=loc)
3782
3783 def address_of(self, var: 'variable.Variable', loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
3784 """

Callers

nothing calls this directly

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected