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

Method add

python/lowlevelil.py:4521–4537  ·  view source on GitHub ↗

``add`` adds expression ``a`` to expression ``b`` potentially setting flags ``flags`` and returning an expression of ``size`` bytes. :param int size: the size of the result in bytes :param ExpressionIndex a: LHS expression :param ExpressionIndex b: RHS expression :param str flags: flag

(
	    self, size: int, a: ExpressionIndex, b: ExpressionIndex, flags: Optional['architecture.FlagType'] = None,
	    loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

4519 return self.expr(LowLevelILOperation.LLIL_FLAG_BIT, self.arch.get_flag_by_name(flag), bit, size=size, source_location=loc)
4520
4521 def add(
4522 self, size: int, a: ExpressionIndex, b: ExpressionIndex, flags: Optional['architecture.FlagType'] = None,
4523 loc: Optional['ILSourceLocation'] = None
4524 ) -> ExpressionIndex:
4525 """
4526 ``add`` adds expression ``a`` to expression ``b`` potentially setting flags ``flags`` and returning
4527 an expression of ``size`` bytes.
4528
4529 :param int size: the size of the result in bytes
4530 :param ExpressionIndex a: LHS expression
4531 :param ExpressionIndex b: RHS expression
4532 :param str flags: flags to set
4533 :param ILSourceLocation loc: location of returned expression
4534 :return: The expression ``add.<size>{<flags>}(a, b)``
4535 :rtype: ExpressionIndex
4536 """
4537 return self.expr(LowLevelILOperation.LLIL_ADD, a, b, size=size, flags=flags, source_location=loc)
4538
4539 def add_carry(
4540 self, size: int, a: ExpressionIndex, b: ExpressionIndex, carry: ExpressionIndex,

Callers 15

AddCallbackMethod · 0.45
global_matchesMethod · 0.45
attr_matchesMethod · 0.45
hlilsMethod · 0.45
attributesMethod · 0.45
_target_helperMethod · 0.45
add_blacklist_itemMethod · 0.45
update_localsMethod · 0.45
__init__Method · 0.45
mainFunction · 0.45
M6502Class · 0.45
load_zero_page_16Method · 0.45

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected