angr.knowledge_plugins.key_definitions.definition¶
- class angr.knowledge_plugins.key_definitions.definition.DefinitionMatchPredicate¶
Bases:
objectA dataclass indicating several facts which much all must match in order for a definition to match. Largely an internal class; don’t worry about this.
- variable: SimVariable | None = None¶
- variable_manager: Union[VariableManagerInternal, Literal[False], None] = None¶
- static construct(predicate=None, **kwargs)¶
- Return type:
- Parameters:
predicate (DefinitionMatchPredicate | None)
- normalize()¶
- matches(defn)¶
- Return type:
- Parameters:
defn (Definition)
- __init__(kind=None, bbl_addr=None, ins_addr=None, variable=None, variable_manager=None, stack_offset=None, reg_name=None, heap_offset=None, global_addr=None, tmp_idx=None, const_val=None, extern=None, arch=None)¶
- Parameters:
bbl_addr (int | None)
ins_addr (int | None)
variable (SimVariable | None)
variable_manager (VariableManagerInternal | Literal[False] | None)
stack_offset (int | None)
heap_offset (int | None)
global_addr (int | None)
tmp_idx (int | None)
const_val (int | None)
extern (bool | None)
arch (Arch | None)
- Return type:
None
- class angr.knowledge_plugins.key_definitions.definition.Definition¶
Bases:
Generic[A,CodeLoc]An atom definition.
- Variables:
atom – The atom being defined.
codeloc – Where this definition is created in the original binary code.
dummy – Tell whether the definition should be considered dummy or not. During simplification by AILment, definitions marked as dummy will not be removed.
tags – A set of tags containing information about the definition gathered during analyses.
- __init__(atom, codeloc, dummy=False, tags=None)¶
- atom
- codeloc
- dummy
- tags