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

Method get_flag_value

python/lowlevelil.py:927–933  ·  view source on GitHub ↗
(self, flag: 'architecture.FlagType')

Source from the content-addressed store, hash-verified

925 return result
926
927 def get_flag_value(self, flag: 'architecture.FlagType') -> 'variable.RegisterValue':
928 if self.function.arch is None:
929 raise Exception("Can not call get_flag_value on function with Architecture set to None")
930 flag = self.function.arch.get_flag_index(flag)
931 value = core.BNGetLowLevelILFlagValueAtInstruction(self.function.handle, flag, self.instr_index)
932 result = variable.RegisterValue.from_BNRegisterValue(value, self.function.arch)
933 return result
934
935 def get_flag_value_after(self, flag: 'architecture.FlagType') -> 'variable.RegisterValue':
936 if self.function.arch is None:

Callers

nothing calls this directly

Calls 2

get_flag_indexMethod · 0.80
from_BNRegisterValueMethod · 0.80

Tested by

no test coverage detected