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

Method flag

python/lowlevelil.py:4495–4504  ·  view source on GitHub ↗

``flag`` returns a flag expression for the given flag name. :param architecture.FlagName flag: name of the flag expression to retrieve :param ILSourceLocation loc: location of returned expression :return: A flag expression of given flag name :rtype: ExpressionIndex

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

Source from the content-addressed store, hash-verified

4493 return self.expr(LowLevelILOperation.LLIL_FLOAT_CONST, struct.unpack("Q", struct.pack("d", value))[0], size=8, source_location=loc)
4494
4495 def flag(self, flag: 'architecture.FlagName', loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
4496 """
4497 ``flag`` returns a flag expression for the given flag name.
4498
4499 :param architecture.FlagName flag: name of the flag expression to retrieve
4500 :param ILSourceLocation loc: location of returned expression
4501 :return: A flag expression of given flag name
4502 :rtype: ExpressionIndex
4503 """
4504 return self.expr(LowLevelILOperation.LLIL_FLAG, self.arch.get_flag_by_name(flag), source_location=loc)
4505
4506 def flag_bit(
4507 self, size: int, flag: 'architecture.FlagName', bit: int, loc: Optional['ILSourceLocation'] = None

Callers 2

copy_expr_toMethod · 0.45
M6502Class · 0.45

Calls 2

exprMethod · 0.95
get_flag_by_nameMethod · 0.80

Tested by

no test coverage detected