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

Method or_expr

python/lowlevelil.py:4613–4629  ·  view source on GitHub ↗

``or_expr`` bitwise or's expression ``a`` and 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 st

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

Source from the content-addressed store, hash-verified

4611 return self.expr(LowLevelILOperation.LLIL_AND, a, b, size=size, flags=flags, source_location=loc)
4612
4613 def or_expr(
4614 self, size: int, a: ExpressionIndex, b: ExpressionIndex, flags: Optional['architecture.FlagType'] = None,
4615 loc: Optional['ILSourceLocation'] = None
4616 ) -> ExpressionIndex:
4617 """
4618 ``or_expr`` bitwise or's expression ``a`` and expression ``b`` potentially setting flags ``flags``
4619 and returning an expression of ``size`` bytes.
4620
4621 :param int size: the size of the result in bytes
4622 :param ExpressionIndex a: LHS expression
4623 :param ExpressionIndex b: RHS expression
4624 :param str flags: optional, flags to set
4625 :param ILSourceLocation loc: location of returned expression
4626 :return: The expression ``or.<size>{<flags>}(a, b)``
4627 :rtype: ExpressionIndex
4628 """
4629 return self.expr(LowLevelILOperation.LLIL_OR, a, b, size=size, flags=flags, source_location=loc)
4630
4631 def xor_expr(
4632 self, size: int, a: ExpressionIndex, b: ExpressionIndex, flags: Optional['architecture.FlagType'] = None,

Callers 4

M6502Class · 0.45
load_zero_page_16Method · 0.45
indirect_loadMethod · 0.45
get_p_valueMethod · 0.45

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected