aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-12-21 21:16:58 +0000
committerTed Kremenek <kremenek@apple.com>2007-12-21 21:16:58 +0000
commitb3144968b6a99258327eef453b7d3e151e32b6ca (patch)
tree994d98427ffce4b9cff70cf970cef44a1a6d2b46
parentafe54333a744f6d72d78f13fa20541328d6d9704 (diff)
Renamed class AnalysisVertex to SimulVertex
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45290 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Analysis/PathSensitive/AnalysisVertex.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/clang/Analysis/PathSensitive/AnalysisVertex.h b/include/clang/Analysis/PathSensitive/AnalysisVertex.h
index b214dec9de..70f9cc3672 100644
--- a/include/clang/Analysis/PathSensitive/AnalysisVertex.h
+++ b/include/clang/Analysis/PathSensitive/AnalysisVertex.h
@@ -1,4 +1,4 @@
-//=- AnalysisVertex.h - Local, Path-Sensitive Supergraph Vertices -*- C++ -*-=//
+//=- SimulVertex.h - Local, Path-Sensitive Supergraph Vertices -*- C++ -*--=//
//
// The LLVM Compiler Infrastructure
//
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
-// This file defines the template class AnalysisVertex which is used to
+// This file defines the template class SimulVertex which is used to
// represent a vertex in the location*state supergraph of an intra-procedural,
// path-sensitive dataflow analysis.
//
@@ -24,7 +24,7 @@ namespace clang {
class ProgramEdge;
template <typename StateTy>
-class AnalysisVertex {
+class SimulVertex {
/// VertexID - A unique ID for the vertex. This number indicates the
/// creation order of vertices, with lower numbers being created first.
/// The first created vertex has VertexID == 0.
@@ -41,12 +41,12 @@ class AnalysisVertex {
/// Predecessors/Successors - Keep track of the predecessor/successor
/// vertices.
- typedef llvm::SmallVector<1> AdjacentVertices;
+ typedef llvm::SmallVector<1,SimulVertex*> AdjacentVertices;
AdjacentVertices Preds;
AdjacentVertices Succs;
public:
- explicit AnalysisVertex(unsigned ID, const ProgramEdge& loc, StateTy* state)
+ explicit SimulVertex(unsigned ID, const ProgramEdge& loc, StateTy* state)
: VertexID(ID), Location(loc), State(state) {}
// Accessors.
@@ -79,8 +79,8 @@ public:
unsigned pred_empty() const { return Preds.empty(); }
// Manipulation of successors/predecessors.
- void addPredecessor(AnalysisVertex* V) {
- Preds.push_back(&V);
+ void addPredecessor(SimulVertex* V) {
+ Preds.push_back(V);
V.Succs.push_back(V);
}
};