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

Method set_var_split

python/mediumlevelil.py:3665–3681  ·  view source on GitHub ↗

``set_var_split`` uses ``hi`` and ``lo`` as a single extended variable of size ``2*size`` setting ``hi:lo`` to the expression ``src`` :param int size: the size of each variable in bytes :param Variable hi: the high variable being set :param Variable lo: the low variable being set :para

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

Source from the content-addressed store, hash-verified

3663 return self.expr(MediumLevelILOperation.MLIL_SET_VAR_FIELD, dest.identifier, offset, src, size=size, source_location=loc)
3664
3665 def set_var_split(
3666 self, size: int, hi: 'variable.Variable', lo: 'variable.Variable', src: ExpressionIndex,
3667 loc: Optional['ILSourceLocation'] = None
3668 ) -> ExpressionIndex:
3669 """
3670 ``set_var_split`` uses ``hi`` and ``lo`` as a single extended variable of size ``2*size``
3671 setting ``hi:lo`` to the expression ``src``
3672
3673 :param int size: the size of each variable in bytes
3674 :param Variable hi: the high variable being set
3675 :param Variable lo: the low variable being set
3676 :param ExpressionIndex src: expression with the value to set the variables to
3677 :param ILSourceLocation loc: location of returned expression
3678 :return: The expression ``hi:lo = src``
3679 :rtype: ExpressionIndex
3680 """
3681 return self.expr(MediumLevelILOperation.MLIL_SET_VAR_SPLIT, hi.identifier, lo.identifier, src, size=size, source_location=loc)
3682
3683 def load(self, size: int, src: ExpressionIndex, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
3684 """

Callers

nothing calls this directly

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected