aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/PathSensitive/ExplodedGraph.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-09 23:11:36 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-09 23:11:36 +0000
commit974c676306758c8c84f5c25e3708186557a678bd (patch)
treed844687a0fdfe66088e3af561e7928a9bd4fcc54 /include/clang/Analysis/PathSensitive/ExplodedGraph.h
parentbd129696c554fbbcd9405104641e292f0fb4678d (diff)
Renamed various traits and classes. Added "Infeasible" bit to ExplodedNodeImpl
so that nodes can be marked as representing an infeasible program point. This flag lets the path-sensitive solver know that no successors should be generated for such nodes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/ExplodedGraph.h')
-rw-r--r--include/clang/Analysis/PathSensitive/ExplodedGraph.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/clang/Analysis/PathSensitive/ExplodedGraph.h b/include/clang/Analysis/PathSensitive/ExplodedGraph.h
index 5420a6d87a..9c37039b7a 100644
--- a/include/clang/Analysis/PathSensitive/ExplodedGraph.h
+++ b/include/clang/Analysis/PathSensitive/ExplodedGraph.h
@@ -24,11 +24,11 @@
namespace clang {
-class ReachabilityEngineImpl;
+class GREngineImpl;
class ExplodedGraphImpl {
protected:
- friend class ReachabilityEngineImpl;
+ friend class GREngineImpl;
// Type definitions.
typedef llvm::DenseMap<ProgramEdge,void*> EdgeNodeSetMap;
@@ -59,9 +59,9 @@ protected:
/// getNodeImpl - Retrieve the node associated with a (Location,State)
/// pair, where 'State' is represented as an opaque void*. This method
- /// is intended to be used only by ReachabilityEngineImpl.
+ /// is intended to be used only by GREngineImpl.
virtual ExplodedNodeImpl* getNodeImpl(const ProgramEdge& L, void* State,
- bool* IsNew) = 0;
+ bool* IsNew) = 0;
/// addRoot - Add an untyped node to the set of roots.
ExplodedNodeImpl* addRoot(ExplodedNodeImpl* V) {
@@ -96,7 +96,7 @@ protected:
protected:
virtual ExplodedNodeImpl*
getNodeImpl(const ProgramEdge& L, void* State, bool* IsNew) {
- return getNode(L,ReachabilityTrait<StateTy>::toState(State),IsNew);
+ return getNode(L,GRTrait<StateTy>::toState(State),IsNew);
}
public:
@@ -131,15 +131,15 @@ public:
void* InsertPos = 0;
StateTy::Profile(profile, State);
- NodeTy* V = VSet.FindNodeOrInsertPos(profile,InsertPos);
+ NodeTy* V = VSet.FindNodeOrInsertPos(profile, InsertPos);
if (!V) {
// Allocate a new node.
V = (NodeTy*) Allocator.Allocate<NodeTy>();
- new (V) NodeTy(NodeCounter++,L,State);
+ new (V) NodeTy(NodeCounter++, L, State);
// Insert the node into the node set and return it.
- VSet.InsertNode(V,InsertPos);
+ VSet.InsertNode(V, InsertPos);
if (IsNew) *IsNew = true;
}