Class FlowVar
A conceptual variable that is assigned only once, like an SSA variable. This
class is used for tracking data flow through variables, where the desired
semantics is sometimes different from what the SSA library provides. Unlike
SSA, there are no phi nodes; instead, each VariableAccess
may be
associated with more than one FlowVar
.
Each instance of this class corresponds to a modification or an initial
value of a variable. A FlowVar
has exactly one result for either
definedByExpr
or definedByInitialValue
. The documentation on those two
member predicates explains how a FlowVar
relates to syntactic constructs of
the language.
Import path
import semmle.code.cpp.dataflow.internal.FlowVar
Direct supertypes
Known direct subtypes
Predicates
definedByExpr | Holds if this |
definedByInitialValue | Holds if this |
definedPartiallyAt | Holds if this |
getAnAccess | Gets a |
getLocation | Gets the location of this element. |
reachesRefParameter | Holds if this |
toString | Gets a textual representation of this element. |