Ghidra Decompiler Analysis Engine
Public Member Functions | List of all members
CollapseStructure Class Reference

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...
 

Detailed Description

Build a code structure from a control-flow graph (BlockGraph).

This class manages the main control-flow structuring algorithm for the decompiler. In short:

Constructor & Destructor Documentation

◆ CollapseStructure()

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.

Parameters
gis the (copy of the) control-flow graph

Member Function Documentation

◆ collapseAll()

void CollapseStructure::collapseAll ( void  )

Run the whole algorithm.

Collapse everything in the control-flow graph to isolated blocks with no inputs and outputs.


The documentation for this class was generated from the following files: