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

Method set_flag

python/lowlevelil.py:4286–4299  ·  view source on GitHub ↗

``set_flag`` sets the flag ``flag`` to the ExpressionIndex ``value`` :param str flag: the low register name :param ExpressionIndex value: an expression to set the flag to :param ILSourceLocation loc: location of returned expression :return: The expression FLAG.flag = value :rtype: Expr

(
	    self, flag: 'architecture.FlagName', value: ExpressionIndex,
	    loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

4284 return self.expr(LowLevelILOperation.LLIL_REG_STACK_PUSH, _reg_stack, value, size=size, flags=flags, source_location=loc)
4285
4286 def set_flag(
4287 self, flag: 'architecture.FlagName', value: ExpressionIndex,
4288 loc: Optional['ILSourceLocation'] = None
4289 ) -> ExpressionIndex:
4290 """
4291 ``set_flag`` sets the flag ``flag`` to the ExpressionIndex ``value``
4292
4293 :param str flag: the low register name
4294 :param ExpressionIndex value: an expression to set the flag to
4295 :param ILSourceLocation loc: location of returned expression
4296 :return: The expression FLAG.flag = value
4297 :rtype: ExpressionIndex
4298 """
4299 return self.expr(LowLevelILOperation.LLIL_SET_FLAG, ExpressionIndex(self.arch.get_flag_by_name(flag)), value, source_location=loc)
4300
4301 def load(
4302 self, size: int, addr: ExpressionIndex, flags: Optional['architecture.FlagName'] = None,

Callers 3

copy_expr_toMethod · 0.45
M6502Class · 0.45
set_p_valueMethod · 0.45

Calls 2

exprMethod · 0.95
get_flag_by_nameMethod · 0.80

Tested by

no test coverage detected