VirtualCFG::CFGNode¶
A node in the control flow graph. Each CFG node corresponds to an AST node, but there can be several CFG nodes for a given AST node.
Synopsis¶
Declared in <SageIII/virtualCFG/virtualCFG.h>
class [[visibility("default")]] CFGNode; Member Functions¶
| Name | Description |
|---|---|
CFGNodeCFGNode(); [constructor] | Constructors |
getIndexunsigned int getIndex() const; | An identifying index within the AST node given by getNode() |
getNodeSgNode* getNode() const; | The underlying AST node |
idstd::string id() const; | ID to use for Dot, etc. |
inEdgesstd::vector<CFGEdge> inEdges() const; | Incoming control flow edges to this node |
isInterestingbool isInteresting() const; | Test whether this node satisfies a (fairly arbitrary) standard for "interestingness". There are many administrative nodes in the raw CFG (nodes that do not correspond to operations in the program), and this function filters them out. |
outEdgesstd::vector<CFGEdge> outEdges() const; | Outgoing control flow edges from this node |
toStringstd::string toString() const; | Pretty string for Dot node labels, etc. |
toStringForDebuggingstd::string toStringForDebugging() const; | String for debugging graphs |
operator==bool operator==(CFGNode const& o) const; | Equality operator |
operator!=bool operator!=(CFGNode const& o) const; | Disequality operator |
operator<bool operator<(CFGNode const& o) const; | Less-than operator |
Private Data Members¶
| Name | Description |
|---|---|
index | An index to differentiate control flow points within a single AST node (for example, before and after the test of an if statement) |
node | The AST node from this CFG node |
Created with MrDocs