Ghidra Decompiler Analysis Engine
|
Build a code structure from a control-flow graph (BlockGraph). More...
#include <blockaction.hh>
Public Member Functions | |
CollapseStructure (BlockGraph &g) | |
Construct given a control-flow graph. More... | |
void | collapseAll (void) |
Run the whole algorithm. More... | |
Build a code structure from a control-flow graph (BlockGraph).
This class manages the main control-flow structuring algorithm for the decompiler. In short:
CollapseStructure::CollapseStructure | ( | BlockGraph & | g | ) |
Construct given a control-flow graph.
The initial BlockGraph should be a copy of the permanent control-flow graph. In particular the FlowBlock nodes should be BlockCopy instances.
g | is the (copy of the) control-flow graph |
void CollapseStructure::collapseAll | ( | void | ) |
Run the whole algorithm.
Collapse everything in the control-flow graph to isolated blocks with no inputs and outputs.