angr.analyses.decompiler.optimization_passes.known_pattern_outliner

class angr.analyses.decompiler.optimization_passes.known_pattern_outliner.KnownPatternOutliner

Bases: OptimizationPass

Automatically finds occurrences of KnownPatterns (inlined library idioms such as std::string::length() or std::vector<int>::size(); see angr.analyses.decompiler.known_patterns) in the AIL graph and outlines them into calls via the KnownPatternFinder analysis.

Runs right before variable recovery so that the synthesized calls’ argument types flow into Typehoon within the same decompilation run.

ARCHES = None
PLATFORMS = None
STAGE: OptimizationPassStage = 7
NAME = 'Outline known code patterns into calls'
DESCRIPTION = "Automatically finds occurrences of KnownPatterns (inlined library idioms\n    such as std::string::length() or std::vector<int>::size(); see\n    angr.analyses.decompiler.known_patterns) in the AIL graph and outlines them\n    into calls via the KnownPatternFinder analysis.\n\n    Runs right before variable recovery so that the synthesized calls' argument\n    types flow into Typehoon within the same decompilation run."
MAX_ROUNDS = 8
__init__(func, manager, known_patterns=None, recognize_known_patterns=True, **kwargs)