blob: 64cc199b57771d3eed66a0f3203b16b4c0279455 [file] [log] [blame]
Ted Kremenekd27f8162008-01-15 23:55:06 +00001//===-- GRConstants.cpp - Simple, Path-Sens. Constant Prop. ------*- C++ -*-==//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// Constant Propagation via Graph Reachability
11//
12// This files defines a simple analysis that performs path-sensitive
13// constant propagation within a function. An example use of this analysis
14// is to perform simple checks for NULL dereferences.
15//
16//===----------------------------------------------------------------------===//
17
18#include "clang/Analysis/PathSensitive/GREngine.h"
19#include "clang/AST/Expr.h"
20#include "clang/Analysis/Analyses/LiveVariables.h"
21#include "clang/Analysis/Visitors/CFGStmtVisitor.h"
22
23#include "llvm/Support/Casting.h"
24#include "llvm/Support/DataTypes.h"
25#include "llvm/ADT/APSInt.h"
26#include "llvm/ADT/FoldingSet.h"
27#include "llvm/ADT/ImmutableMap.h"
Ted Kremenek3c6c6722008-01-16 17:56:25 +000028#include "llvm/ADT/SmallVector.h"
Ted Kremenekd27f8162008-01-15 23:55:06 +000029#include "llvm/Support/Compiler.h"
30
Ted Kremenekaa66a322008-01-16 21:46:15 +000031#ifndef NDEBUG
32#include "llvm/Support/GraphWriter.h"
33#include <sstream>
34#endif
35
Ted Kremenekd27f8162008-01-15 23:55:06 +000036using namespace clang;
37using llvm::APInt;
38using llvm::APFloat;
39using llvm::dyn_cast;
40using llvm::cast;
41
42//===----------------------------------------------------------------------===//
Ted Kremenekaa66a322008-01-16 21:46:15 +000043/// DSPtr - A variant smart pointer that wraps either a ValueDecl* or a
Ted Kremenekd27f8162008-01-15 23:55:06 +000044/// Stmt*. Use cast<> or dyn_cast<> to get actual pointer type
45//===----------------------------------------------------------------------===//
46namespace {
Ted Kremenekcb448ca2008-01-16 00:53:15 +000047class VISIBILITY_HIDDEN DSPtr {
Ted Kremenek0525a4f2008-01-16 19:47:19 +000048 uintptr_t Raw;
Ted Kremenekd27f8162008-01-15 23:55:06 +000049public:
Ted Kremeneke3d7c242008-01-16 23:35:31 +000050 enum VariantKind { IsSubExp=0x0, IsValueDecl=0x1, IsBlkLvl=0x2, Flags=0x3 };
Ted Kremenekd27f8162008-01-15 23:55:06 +000051 inline void* getPtr() const { return reinterpret_cast<void*>(Raw & ~Flags); }
52 inline VariantKind getKind() const { return (VariantKind) (Raw & Flags); }
53
Ted Kremenekaa66a322008-01-16 21:46:15 +000054 DSPtr(ValueDecl* D) : Raw(reinterpret_cast<uintptr_t>(D) | IsValueDecl) {}
Ted Kremenekcb448ca2008-01-16 00:53:15 +000055 DSPtr(Stmt* S, bool isBlkLvl)
Ted Kremenekd27f8162008-01-15 23:55:06 +000056 : Raw(reinterpret_cast<uintptr_t>(S) | (isBlkLvl ? IsBlkLvl : IsSubExp)) {}
57
58 bool isSubExpr() const { return getKind() == IsSubExp; }
59
60 inline void Profile(llvm::FoldingSetNodeID& ID) const {
Ted Kremenek98491852008-01-16 05:51:13 +000061 ID.AddPointer(getPtr());
62 ID.AddInteger((unsigned) getKind());
Ted Kremenekd27f8162008-01-15 23:55:06 +000063 }
Ted Kremenekcb448ca2008-01-16 00:53:15 +000064 inline bool operator==(const DSPtr& X) const { return Raw == X.Raw; }
65 inline bool operator!=(const DSPtr& X) const { return Raw != X.Raw; }
Ted Kremenekb3d2dca2008-01-16 23:33:44 +000066 inline bool operator<(const DSPtr& X) const {
67 VariantKind k = getKind(), Xk = X.getKind();
Ted Kremeneke00fe3f2008-01-17 00:52:48 +000068 return k == Xk ? getPtr() < X.getPtr() : ((unsigned) k) < ((unsigned) Xk);
Ted Kremenekb3d2dca2008-01-16 23:33:44 +000069 }
Ted Kremenekd27f8162008-01-15 23:55:06 +000070};
71} // end anonymous namespace
72
Ted Kremenekcb448ca2008-01-16 00:53:15 +000073// Machinery to get cast<> and dyn_cast<> working with DSPtr.
Ted Kremenekd27f8162008-01-15 23:55:06 +000074namespace llvm {
Ted Kremenekaa66a322008-01-16 21:46:15 +000075 template<> inline bool isa<ValueDecl,DSPtr>(const DSPtr& V) {
76 return V.getKind() == DSPtr::IsValueDecl;
Ted Kremenekd27f8162008-01-15 23:55:06 +000077 }
Ted Kremenekcb448ca2008-01-16 00:53:15 +000078 template<> inline bool isa<Stmt,DSPtr>(const DSPtr& V) {
Ted Kremeneke00fe3f2008-01-17 00:52:48 +000079 return ((unsigned) V.getKind()) != DSPtr::IsValueDecl;
Ted Kremenekd27f8162008-01-15 23:55:06 +000080 }
Ted Kremenekaa66a322008-01-16 21:46:15 +000081 template<> struct VISIBILITY_HIDDEN cast_retty_impl<ValueDecl,DSPtr> {
82 typedef const ValueDecl* ret_type;
Ted Kremenekd27f8162008-01-15 23:55:06 +000083 };
Ted Kremenekcb448ca2008-01-16 00:53:15 +000084 template<> struct VISIBILITY_HIDDEN cast_retty_impl<Stmt,DSPtr> {
Ted Kremenekd27f8162008-01-15 23:55:06 +000085 typedef const Stmt* ret_type;
86 };
Ted Kremenekcb448ca2008-01-16 00:53:15 +000087 template<> struct VISIBILITY_HIDDEN simplify_type<DSPtr> {
Ted Kremenekd27f8162008-01-15 23:55:06 +000088 typedef void* SimpleType;
Ted Kremenekcb448ca2008-01-16 00:53:15 +000089 static inline SimpleType getSimplifiedValue(const DSPtr &V) {
Ted Kremenekd27f8162008-01-15 23:55:06 +000090 return V.getPtr();
91 }
92 };
93} // end llvm namespace
94
95//===----------------------------------------------------------------------===//
96// DeclStmtMapTy - A ImmutableMap type from Decl*/Stmt* to integers.
97//
98// FIXME: We may eventually use APSInt, or a mixture of APSInt and
99// integer primitives to do this right; this will handle both
100// different bit-widths and allow us to detect integer overflows, etc.
101//
102//===----------------------------------------------------------------------===//
103
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000104typedef llvm::ImmutableMap<DSPtr,uint64_t> DeclStmtMapTy;
Ted Kremenekd27f8162008-01-15 23:55:06 +0000105
106namespace clang {
107template<>
108struct VISIBILITY_HIDDEN GRTrait<DeclStmtMapTy> {
109 static inline void* toPtr(DeclStmtMapTy M) {
110 return reinterpret_cast<void*>(M.getRoot());
111 }
112 static inline DeclStmtMapTy toState(void* P) {
113 return DeclStmtMapTy(static_cast<DeclStmtMapTy::TreeTy*>(P));
114 }
115};
116}
117
118//===----------------------------------------------------------------------===//
119// The Checker!
120//===----------------------------------------------------------------------===//
121
122namespace {
123class VISIBILITY_HIDDEN ExprVariantTy {
124 const uint64_t val;
125 const bool isConstant;
126public:
127 ExprVariantTy() : val(0), isConstant(false) {}
128 ExprVariantTy(uint64_t v) : val(v), isConstant(true) {}
129
130 operator bool() const { return isConstant; }
131 uint64_t getVal() const { assert (isConstant); return val; }
132
133 ExprVariantTy operator+(const ExprVariantTy& X) const {
134 if (!isConstant || !X.isConstant) return ExprVariantTy();
135 else return ExprVariantTy(val+X.val);
136 }
137
138 ExprVariantTy operator-(const ExprVariantTy& X) const {
139 if (!isConstant || !X.isConstant) return ExprVariantTy();
Ted Kremenek95b3f6f2008-01-16 22:20:36 +0000140 else return ExprVariantTy(val-X.val);
Ted Kremenekd27f8162008-01-15 23:55:06 +0000141 }
142};
143} // end anonymous namespace
144
145//===----------------------------------------------------------------------===//
146// The Checker!
147//===----------------------------------------------------------------------===//
148
149namespace {
150class VISIBILITY_HIDDEN GRConstants : public CFGStmtVisitor<GRConstants> {
151
152public:
153 typedef DeclStmtMapTy StateTy;
154 typedef GRNodeBuilder<GRConstants> NodeBuilder;
155 typedef ExplodedNode<StateTy> NodeTy;
156
157protected:
Ted Kremenekaa66a322008-01-16 21:46:15 +0000158 // Liveness - live-variables information the ValueDecl* and Expr* (block-level)
Ted Kremenekd27f8162008-01-15 23:55:06 +0000159 // in the CFG. Used to prune out dead state.
160 LiveVariables* Liveness;
161
162 // Builder - The current GRNodeBuilder which is used when building the nodes
163 // for a given statement.
164 NodeBuilder* Builder;
165
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000166 DeclStmtMapTy::Factory StateMgr;
Ted Kremenekd27f8162008-01-15 23:55:06 +0000167
168 // cfg - the current CFG.
169 CFG* cfg;
170
Ted Kremenek3c6c6722008-01-16 17:56:25 +0000171 typedef llvm::SmallVector<NodeTy*,8> NodeSetTy;
Ted Kremenekd27f8162008-01-15 23:55:06 +0000172 NodeSetTy NodeSetA;
173 NodeSetTy NodeSetB;
174 NodeSetTy* Nodes;
175 NodeSetTy* OldNodes;
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000176 StateTy CurrentState;
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000177 NodeTy* InitialPred;
Ted Kremenekd27f8162008-01-15 23:55:06 +0000178
Ted Kremenekd27f8162008-01-15 23:55:06 +0000179public:
180 GRConstants() : Liveness(NULL), Builder(NULL), cfg(NULL),
Ted Kremenek3c6c6722008-01-16 17:56:25 +0000181 Nodes(&NodeSetA), OldNodes(&NodeSetB),
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000182 CurrentState(StateMgr.GetEmptyMap()), InitialPred(NULL) {}
Ted Kremenekd27f8162008-01-15 23:55:06 +0000183
184 ~GRConstants() { delete Liveness; }
185
186 CFG& getCFG() { assert (cfg); return *cfg; }
187
188 void Initialize(CFG& c) {
189 cfg = &c;
190 Liveness = new LiveVariables(c);
191 Liveness->runOnCFG(c);
192 }
193
194 StateTy getInitialState() {
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000195 return StateMgr.GetEmptyMap();
Ted Kremenekd27f8162008-01-15 23:55:06 +0000196 }
197
198 void ProcessStmt(Stmt* S, NodeBuilder& builder);
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000199 void SwitchNodeSets();
Ted Kremenekd27f8162008-01-15 23:55:06 +0000200 void DoStmt(Stmt* S);
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000201
202 StateTy RemoveDescendantMappings(Stmt* S, StateTy M, unsigned Levels=2);
203 StateTy RemoveSubExprMappings(StateTy M);
Ted Kremenekd27f8162008-01-15 23:55:06 +0000204
205 void AddBinding(Expr* E, ExprVariantTy V, bool isBlkLvl = false);
Ted Kremenekaa66a322008-01-16 21:46:15 +0000206 void AddBinding(ValueDecl* D, ExprVariantTy V);
Ted Kremenek1ccd31c2008-01-16 19:42:59 +0000207
Ted Kremenekd27f8162008-01-15 23:55:06 +0000208 ExprVariantTy GetBinding(Expr* E);
209
210 void BlockStmt_VisitStmt(Stmt* S) { DoStmt(S); }
Ted Kremenekd27f8162008-01-15 23:55:06 +0000211
212 void VisitAssign(BinaryOperator* O);
Ted Kremenekd27f8162008-01-15 23:55:06 +0000213 void VisitBinAdd(BinaryOperator* O);
214 void VisitBinSub(BinaryOperator* O);
Ted Kremenek1ccd31c2008-01-16 19:42:59 +0000215 void VisitBinAssign(BinaryOperator* D);
Ted Kremenekd27f8162008-01-15 23:55:06 +0000216};
217} // end anonymous namespace
218
219void GRConstants::ProcessStmt(Stmt* S, NodeBuilder& builder) {
220 Builder = &builder;
221 Nodes->clear();
222 OldNodes->clear();
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000223 InitialPred = Builder->getLastNode();
224 assert (InitialPred);
225 OldNodes->push_back(InitialPred);
226 CurrentState = RemoveSubExprMappings(InitialPred->getState());
Ted Kremenekd27f8162008-01-15 23:55:06 +0000227 BlockStmt_Visit(S);
228 Builder = NULL;
229}
230
231ExprVariantTy GRConstants::GetBinding(Expr* E) {
Ted Kremenek0525a4f2008-01-16 19:47:19 +0000232 DSPtr P(NULL);
Ted Kremenek4e99a5f2008-01-17 16:57:34 +0000233 E = E->IgnoreParens();
Ted Kremenek0525a4f2008-01-16 19:47:19 +0000234
Ted Kremenekca3e8572008-01-16 22:28:08 +0000235 switch (E->getStmtClass()) {
236 case Stmt::DeclRefExprClass:
237 P = DSPtr(cast<DeclRefExpr>(E)->getDecl());
238 break;
239
240 case Stmt::IntegerLiteralClass:
241 return cast<IntegerLiteral>(E)->getValue().getZExtValue();
242
243 default:
244 P = DSPtr(E, getCFG().isBlkExpr(E));
245 break;
246 }
Ted Kremenek0525a4f2008-01-16 19:47:19 +0000247
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000248 StateTy::iterator I = CurrentState.find(P);
Ted Kremenekd27f8162008-01-15 23:55:06 +0000249
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000250 if (I == CurrentState.end())
Ted Kremenekd27f8162008-01-15 23:55:06 +0000251 return ExprVariantTy();
252
253 return (*I).second;
254}
255
256void GRConstants::AddBinding(Expr* E, ExprVariantTy V, bool isBlkLvl) {
Ted Kremenek22f0d972008-01-16 19:28:16 +0000257 if (V)
258 CurrentState = StateMgr.Add(CurrentState, DSPtr(E,isBlkLvl), V.getVal());
Ted Kremenekd27f8162008-01-15 23:55:06 +0000259}
260
Ted Kremenekaa66a322008-01-16 21:46:15 +0000261void GRConstants::AddBinding(ValueDecl* D, ExprVariantTy V) {
Ted Kremenek1ccd31c2008-01-16 19:42:59 +0000262 if (V)
263 CurrentState = StateMgr.Add(CurrentState, DSPtr(D), V.getVal());
264 else
265 CurrentState = StateMgr.Remove(CurrentState, DSPtr(D));
266}
267
Ted Kremenekd27f8162008-01-15 23:55:06 +0000268void GRConstants::SwitchNodeSets() {
269 NodeSetTy* Tmp = OldNodes;
270 OldNodes = Nodes;
271 Nodes = Tmp;
272 Nodes->clear();
273}
274
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000275GRConstants::StateTy
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000276GRConstants::RemoveSubExprMappings(StateTy M) {
277#if 0
278 return M;
279#else
280 for (StateTy::iterator I = M.begin(), E = M.end();
281 I!=E && I.getKey().getKind() == DSPtr::IsSubExp; ++I) {
282 // Note: we can assign a new map to M since the iterators are
283 // iterating over the tree of the original map (aren't immutable maps
284 // nice?).
285 M = StateMgr.Remove(M, I.getKey());
286 }
287
288 return M;
289#endif
290}
291
292
293GRConstants::StateTy
294GRConstants::RemoveDescendantMappings(Stmt* S, GRConstants::StateTy State,
295 unsigned Levels) {
296#if 1
297 return State;
298#else
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000299 typedef Stmt::child_iterator iterator;
300
301 for (iterator I=S->child_begin(), E=S->child_end(); I!=E; ++I)
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000302 if (Stmt* C = *I) {
303 if (Levels == 1) {
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000304 // Observe that this will only remove mappings to non-block level
305 // expressions. This is valid even if *CI is a block-level expression,
306 // since it simply won't be in the map in the first place.
Ted Kremenek3c6c6722008-01-16 17:56:25 +0000307 // Note: This should also work if 'C' is a block-level expression,
308 // although ideally we would want to skip processing C's children.
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000309 State = StateMgr.Remove(State, DSPtr(C,false));
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000310 }
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000311 else {
312 if (ParenExpr* P = dyn_cast<ParenExpr>(C))
313 State = RemoveDescendantMappings(P, State, Levels);
314 else
315 State = RemoveDescendantMappings(C, State, Levels-1);
316 }
317 }
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000318
319 return State;
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000320#endif
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000321}
Ted Kremenekd27f8162008-01-15 23:55:06 +0000322
323void GRConstants::DoStmt(Stmt* S) {
324 for (Stmt::child_iterator I=S->child_begin(), E=S->child_end(); I!=E; ++I)
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000325 if (*I) DoStmt(*I);
Ted Kremenekd27f8162008-01-15 23:55:06 +0000326
Ted Kremenekd27f8162008-01-15 23:55:06 +0000327 for (NodeSetTy::iterator I=OldNodes->begin(), E=OldNodes->end(); I!=E; ++I) {
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000328 NodeTy* Pred = *I;
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000329
330 if (Pred != InitialPred)
331 CurrentState = Pred->getState();
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000332
Ted Kremenek3c6c6722008-01-16 17:56:25 +0000333 StateTy OldState = CurrentState;
Ted Kremeneke00fe3f2008-01-17 00:52:48 +0000334
335 if (Pred != InitialPred)
336 CurrentState = RemoveDescendantMappings(S, CurrentState);
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000337
Ted Kremenekd27f8162008-01-15 23:55:06 +0000338 Visit(S);
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000339
Ted Kremenek3c6c6722008-01-16 17:56:25 +0000340 if (CurrentState != OldState) {
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000341 NodeTy* N = Builder->generateNode(S, CurrentState, Pred);
Ted Kremenek3c6c6722008-01-16 17:56:25 +0000342 if (N) Nodes->push_back(N);
Ted Kremenekcb448ca2008-01-16 00:53:15 +0000343 }
Ted Kremenek3c6c6722008-01-16 17:56:25 +0000344 else Nodes->push_back(Pred);
Ted Kremenekd27f8162008-01-15 23:55:06 +0000345 }
Ted Kremenek3c6c6722008-01-16 17:56:25 +0000346
347 SwitchNodeSets();
Ted Kremenekd27f8162008-01-15 23:55:06 +0000348}
349
Ted Kremenekd27f8162008-01-15 23:55:06 +0000350void GRConstants::VisitBinAdd(BinaryOperator* B) {
351 AddBinding(B, GetBinding(B->getLHS()) + GetBinding(B->getRHS()));
352}
353
354void GRConstants::VisitBinSub(BinaryOperator* B) {
355 AddBinding(B, GetBinding(B->getLHS()) - GetBinding(B->getRHS()));
356}
Ted Kremenekee985462008-01-16 18:18:48 +0000357
Ted Kremenek1ccd31c2008-01-16 19:42:59 +0000358
Ted Kremenek1ccd31c2008-01-16 19:42:59 +0000359void GRConstants::VisitBinAssign(BinaryOperator* B) {
Ted Kremenek4e99a5f2008-01-17 16:57:34 +0000360 if (DeclRefExpr* D = dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParens()))
Ted Kremenek1ccd31c2008-01-16 19:42:59 +0000361 AddBinding(D->getDecl(), GetBinding(B->getRHS()));
362}
363
Ted Kremenekee985462008-01-16 18:18:48 +0000364//===----------------------------------------------------------------------===//
365// Driver.
366//===----------------------------------------------------------------------===//
367
Ted Kremenekaa66a322008-01-16 21:46:15 +0000368#ifndef NDEBUG
369namespace llvm {
370template<>
371struct VISIBILITY_HIDDEN DOTGraphTraits<GRConstants::NodeTy*> :
372 public DefaultDOTGraphTraits {
373
374 static std::string getNodeLabel(const GRConstants::NodeTy* N, void*) {
375 std::ostringstream Out;
376
377 Out << "Vertex: " << (void*) N << '\n';
378 ProgramPoint Loc = N->getLocation();
379
380 switch (Loc.getKind()) {
381 case ProgramPoint::BlockEntranceKind:
382 Out << "Block Entrance: B"
383 << cast<BlockEntrance>(Loc).getBlock()->getBlockID();
384 break;
385
386 case ProgramPoint::BlockExitKind:
387 assert (false);
388 break;
389
390 case ProgramPoint::PostStmtKind: {
391 const PostStmt& L = cast<PostStmt>(Loc);
392 Out << "Stmt: " << (void*) L.getStmt() << '\n';
393 L.getStmt()->printPretty(Out);
394 break;
395 }
396
397 default: {
398 const BlockEdge& E = cast<BlockEdge>(Loc);
399 Out << "Edge: (B" << E.getSrc()->getBlockID() << ", B"
400 << E.getDst()->getBlockID() << ')';
401 }
402 }
403
404 Out << "\n{";
405
406 GRConstants::StateTy M = N->getState();
407 bool isFirst = true;
408
409 for (GRConstants::StateTy::iterator I=M.begin(), E=M.end(); I!=E; ++I) {
410 if (!isFirst)
411 Out << '\n';
412 else
413 isFirst = false;
414
415 if (ValueDecl* V = dyn_cast<ValueDecl>(I.getKey())) {
416 Out << "Decl: " << (void*) V << ", " << V->getName();
417 }
418 else {
419 Stmt* E = cast<Stmt>(I.getKey());
420 Out << "Stmt: " << (void*) E;
421 }
422
423 Out << " => " << I.getData();
424 }
425
426 Out << " }";
427
428 return Out.str();
429 }
430};
431} // end llvm namespace
432#endif
433
Ted Kremenekee985462008-01-16 18:18:48 +0000434namespace clang {
435void RunGRConstants(CFG& cfg) {
436 GREngine<GRConstants> Engine(cfg);
437 Engine.ExecuteWorkList();
Ted Kremenekaa66a322008-01-16 21:46:15 +0000438#ifndef NDEBUG
439 llvm::ViewGraph(*Engine.getGraph().roots_begin(),"GRConstants");
440#endif
Ted Kremenekee985462008-01-16 18:18:48 +0000441}
442}