angr.analyses.decompiler.known_patterns.apply¶
Apply call-site information (prototypes) for known-pattern calls.
Known-pattern calls are identified by their string target, which is stable across Clinic runs; the VariableMap holding prototypes is scoped to a single Clinic run. This helper (re)applies the prototypes onto a graph’s calls so that variable recovery emits per-argument type constraints for Typehoon. It is used by the KnownPatternOutliner optimization pass (which runs after the peephole stages) and mirrors what the KnownPatternCallInfo peephole does for graphs that already contain known-pattern calls at the start of a run.
- angr.analyses.decompiler.known_patterns.apply.prototype_for_call(project, call)¶
The ctx-instantiated prototype for a known-pattern call, or None. The return-type width and argument pointer sizes follow the target’s PatternContext.
- angr.analyses.decompiler.known_patterns.apply.apply_call_info_to_graph(graph, manager, project)¶
Set the call-site prototype of every known-pattern call in
graphin the VariableMap attached tomanager. Returns the number of calls that received a prototype.