CFG
CFG(); [constructor] | The constructor building the CFG. The valid nodes are SgProject, SgStatement, SgExpression and SgInitializedName. |
~CFG
virtual ~CFG(); [destructor] [virtual] | Destructor |
operator=
CFG& operator=(CFG const& other) = delete; [deleted] | Copy assignment operator |
buildCFG
virtual void buildCFG(); [virtual] | Build CFG according to the 'is_filtered_' flag. |
buildFilteredCFG
virtual void buildFilteredCFG(); [virtual] | Build filtered CFG which only contains interesting nodes. |
buildFullCFG
virtual void buildFullCFG(); [virtual] | Build CFG for debugging. |
cfgForBeginning
SgGraphNode* cfgForBeginning(SgNode* node); | |
cfgForEnd
SgGraphNode* cfgForEnd(SgNode* node); | |
cfgToDot
void cfgToDot( SgNode* node, std::string const& file_name); | Output the graph to a DOT file. |
getEntry
SgGraphNode* getEntry() const; | Get the entry node of the CFG |
getExit
SgGraphNode* getExit() const; | Get the exit node of the CFG |
getGraph
SgIncidenceDirectedGraph* getGraph() const; | Get the pointer pointing to the graph used by static CFG. |
getInEdges
std::vector<SgDirectedGraphEdge*> getInEdges(SgGraphNode* node); | |
getIndex
unsigned int getIndex(SgGraphNode* node) const; | Get the index of a CFG node. |
getOutEdges
std::vector<SgDirectedGraphEdge*> getOutEdges(SgGraphNode* node); | |
isFilteredCFG
bool isFilteredCFG() const; | |
setFiltered
void setFiltered(bool flag); | |
setStart
void setStart(SgNode* node); | Set the start node for graph building. The valid nodes are SgProject, SgStatement, SgExpression and SgInitializedName. |
toCFGNode
VirtualCFG::CFGNode toCFGNode(SgGraphNode* node) const; | Turn a graph node into a CFGNode which is defined in VirtualCFG namespace. |
toCFGPath
VirtualCFG::CFGPath const& toCFGPath(SgDirectedGraphEdge* edge) const; | |
toGraphNode
SgGraphNode* toGraphNode(VirtualCFG::CFGNode& n); | Turn a CFG node into a GraphNode which is defined in VirtualCFG namespace. Returns NULL if CFGNode is not present |