Skip to content

OpenAnalysis::CFG

CFG is a DGraph (directed graph) with enhanced nodes and edges. Each node in the CFG points to a list of statements that together represent a basic block. The entire program would be represented by a set of CFGs, one for each subroutine, and one for the main program.

Synopsis

Declared in <src/midend/programAnalysis/OpenAnalysis/CFG/CFG.h>

class CFG
    : public DGraph

Base Classes

Name

Description

DGraph

DGraph is the base class for a general directed graph (DGraph) that is in turn derived from BaseGraph. Algorithms that operate upon abstract directed graphs should, normally, use only this base DGraph class for maximum portability.

Enums

Name

EdgeType

Member Functions