VirtualCFG::CFGEdge¶
A control flow edge connecting two CFG nodes, with an edge condition to indicate edge types
Synopsis¶
Declared in <SageIII/virtualCFG/virtualCFG.h>
class [[visibility("default")]] CFGEdge; Member Functions¶
| Name | Description |
|---|---|
CFGEdgeCFGEdge(); [constructor] | Constructors |
caseLabelSgExpression* caseLabel() const; | The label of the case represented by an eckCaseLabel edge |
computedGotoCaseIndexunsigned int computedGotoCaseIndex() const; | The expression of the computed goto represented by the eckArithmeticIf* conditions |
conditionEdgeConditionKind condition() const; | The control flow condition that enables this edge |
conditionBasedOnSgExpression* conditionBasedOn() const; | The test or case key that is tested as a condition of this control flow edge |
idstd::string id() const; | ID to use for Dot, etc. |
scopesBeingEnteredstd::vector<SgInitializedName*> scopesBeingEntered() const; | Variables coming into scope across this edge (not extensively tested) |
scopesBeingExitedstd::vector<SgInitializedName*> scopesBeingExited() const; | Variables going out of scope across this edge (not extensively tested) |
sourceCFGNode source() const; | The source (beginning) CFG node |
targetCFGNode target() const; | The target (ending) CFG node |
toStringstd::string toString() const; | Pretty string for Dot node labels, etc. |
toStringForDebuggingstd::string toStringForDebugging() const; | String for debugging graphs |
operator==bool operator==(CFGEdge const& o) const; | Compare equality of edges |
operator!=bool operator!=(CFGEdge const& o) const; | Compare disequality of edges |
operator<bool operator<(CFGEdge const& o) const; | operator<() has an arbitrary ordering, but allows these objects to be used with std::set and std::map |
Private Data Members¶
| Name |
|---|
src |
tgt |
Created with MrDocs