Skip to content

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
CFGEdge
CFGEdge(); [constructor]
Constructors
caseLabel
SgExpression* caseLabel() const;
The label of the case represented by an eckCaseLabel edge
computedGotoCaseIndex
unsigned int computedGotoCaseIndex() const;
The expression of the computed goto represented by the eckArithmeticIf* conditions
condition
EdgeConditionKind condition() const;
The control flow condition that enables this edge
conditionBasedOn
SgExpression* conditionBasedOn() const;
The test or case key that is tested as a condition of this control flow edge
id
std::string id() const;
ID to use for Dot, etc.
scopesBeingEntered
std::vector<SgInitializedName*> scopesBeingEntered() const;
Variables coming into scope across this edge (not extensively tested)
scopesBeingExited
std::vector<SgInitializedName*> scopesBeingExited() const;
Variables going out of scope across this edge (not extensively tested)
source
CFGNode source() const;
The source (beginning) CFG node
target
CFGNode target() const;
The target (ending) CFG node
toString
std::string toString() const;
Pretty string for Dot node labels, etc.
toStringForDebugging
std::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