angr.analyses.decompiler.peephole_optimizations.known_pattern_call_info

class angr.analyses.decompiler.peephole_optimizations.known_pattern_call_info.KnownPatternCallInfo

Bases: PeepholeOptimizationExprBase

Attach call-site prototypes (and optional vvar type hints) to calls that were synthesized from KnownPatterns (see angr.analyses.decompiler.known_patterns).

Known-pattern calls are identified by their string target, which is stable across Clinic runs, while the VariableMap holding prototypes is scoped to a single Clinic run; running as a peephole re-applies the prototype in every run so that variable recovery emits per-argument type constraints for Typehoon (e.g. arg <: std::string * for std::string::length).

NAME = 'Attach prototypes and type hints to known-pattern calls'
expr_classes = (<class 'angr.ailment.expression.Call'>,)
optimize(expr, **kwargs)
Parameters:

expr (Call)