blob: 7330b6261479b1e2c160b2a35987472c0f9d3471 [file] [log] [blame]
Ted Kremenek45021952009-02-14 17:08:39 +00001//== RangeConstraintManager.cpp - Manage range constraints.------*- 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//
Mike Stump1eb44332009-09-09 15:08:12 +000010// This file defines RangeConstraintManager, a class that tracks simple
Ted Kremenek45021952009-02-14 17:08:39 +000011// equality and inequality constraints on symbolic values of GRState.
12//
13//===----------------------------------------------------------------------===//
14
15#include "SimpleConstraintManager.h"
16#include "clang/Analysis/PathSensitive/GRState.h"
17#include "clang/Analysis/PathSensitive/GRStateTrait.h"
18#include "clang/Analysis/PathSensitive/GRTransferFuncs.h"
Chandler Carruthf465e852009-11-11 19:10:59 +000019#include "clang/Analysis/ManagerRegistry.h"
Ted Kremenek45021952009-02-14 17:08:39 +000020#include "llvm/Support/Debug.h"
21#include "llvm/ADT/FoldingSet.h"
22#include "llvm/ADT/ImmutableSet.h"
23#include "llvm/Support/raw_ostream.h"
24
25using namespace clang;
26
Kovarththanan Rajaratnamba5fb5a2009-11-28 06:07:30 +000027namespace { class ConstraintRange {}; }
Ted Kremenek9beefec2009-02-17 19:28:04 +000028static int ConstraintRangeIndex = 0;
Ted Kremenek45021952009-02-14 17:08:39 +000029
Ted Kremenek9beefec2009-02-17 19:28:04 +000030/// A Range represents the closed range [from, to]. The caller must
31/// guarantee that from <= to. Note that Range is immutable, so as not
32/// to subvert RangeSet's immutability.
Ted Kremenekb103f012009-02-18 05:22:01 +000033namespace {
Kovarththanan Rajaratnamba5fb5a2009-11-28 06:07:30 +000034class Range : public std::pair<const llvm::APSInt*,
Ted Kremenekb103f012009-02-18 05:22:01 +000035 const llvm::APSInt*> {
Ted Kremenek45021952009-02-14 17:08:39 +000036public:
37 Range(const llvm::APSInt &from, const llvm::APSInt &to)
Ted Kremenek9beefec2009-02-17 19:28:04 +000038 : std::pair<const llvm::APSInt*, const llvm::APSInt*>(&from, &to) {
Ted Kremenek45021952009-02-14 17:08:39 +000039 assert(from <= to);
40 }
41 bool Includes(const llvm::APSInt &v) const {
Ted Kremenek9beefec2009-02-17 19:28:04 +000042 return *first <= v && v <= *second;
Ted Kremenek45021952009-02-14 17:08:39 +000043 }
44 const llvm::APSInt &From() const {
Ted Kremenek9beefec2009-02-17 19:28:04 +000045 return *first;
Ted Kremenek45021952009-02-14 17:08:39 +000046 }
47 const llvm::APSInt &To() const {
Ted Kremenek9beefec2009-02-17 19:28:04 +000048 return *second;
Ted Kremenek45021952009-02-14 17:08:39 +000049 }
Ted Kremenek9beefec2009-02-17 19:28:04 +000050 const llvm::APSInt *getConcreteValue() const {
51 return &From() == &To() ? &From() : NULL;
Ted Kremenek45021952009-02-14 17:08:39 +000052 }
53
54 void Profile(llvm::FoldingSetNodeID &ID) const {
Ted Kremenek9beefec2009-02-17 19:28:04 +000055 ID.AddPointer(&From());
56 ID.AddPointer(&To());
Ted Kremenek45021952009-02-14 17:08:39 +000057 }
58};
59
Ted Kremenekb103f012009-02-18 05:22:01 +000060
Kovarththanan Rajaratnamba5fb5a2009-11-28 06:07:30 +000061class RangeTrait : public llvm::ImutContainerInfo<Range> {
Ted Kremenekb103f012009-02-18 05:22:01 +000062public:
63 // When comparing if one Range is less than another, we should compare
Ted Kremeneke53f8202009-02-18 17:42:44 +000064 // the actual APSInt values instead of their pointers. This keeps the order
65 // consistent (instead of comparing by pointer values) and can potentially
66 // be used to speed up some of the operations in RangeSet.
Ted Kremenekb103f012009-02-18 05:22:01 +000067 static inline bool isLess(key_type_ref lhs, key_type_ref rhs) {
Mike Stump1eb44332009-09-09 15:08:12 +000068 return *lhs.first < *rhs.first || (!(*rhs.first < *lhs.first) &&
Ted Kremenekb103f012009-02-18 05:22:01 +000069 *lhs.second < *rhs.second);
70 }
71};
72
Ted Kremenek9beefec2009-02-17 19:28:04 +000073/// RangeSet contains a set of ranges. If the set is empty, then
74/// there the value of a symbol is overly constrained and there are no
75/// possible values for that symbol.
Kovarththanan Rajaratnamba5fb5a2009-11-28 06:07:30 +000076class RangeSet {
Ted Kremenekb103f012009-02-18 05:22:01 +000077 typedef llvm::ImmutableSet<Range, RangeTrait> PrimRangeSet;
Ted Kremenek45021952009-02-14 17:08:39 +000078 PrimRangeSet ranges; // no need to make const, since it is an
79 // ImmutableSet - this allows default operator=
Mike Stump1eb44332009-09-09 15:08:12 +000080 // to work.
Ted Kremenek45021952009-02-14 17:08:39 +000081public:
Ted Kremenek9beefec2009-02-17 19:28:04 +000082 typedef PrimRangeSet::Factory Factory;
83 typedef PrimRangeSet::iterator iterator;
84
85 RangeSet(PrimRangeSet RS) : ranges(RS) {}
86 RangeSet(Factory& F) : ranges(F.GetEmptySet()) {}
87
88 iterator begin() const { return ranges.begin(); }
89 iterator end() const { return ranges.end(); }
Mike Stump1eb44332009-09-09 15:08:12 +000090
Ted Kremenek9beefec2009-02-17 19:28:04 +000091 bool isEmpty() const { return ranges.isEmpty(); }
Mike Stump1eb44332009-09-09 15:08:12 +000092
Ted Kremenek9beefec2009-02-17 19:28:04 +000093 /// Construct a new RangeSet representing '{ [from, to] }'.
94 RangeSet(Factory &F, const llvm::APSInt &from, const llvm::APSInt &to)
95 : ranges(F.Add(F.GetEmptySet(), Range(from, to))) {}
Mike Stump1eb44332009-09-09 15:08:12 +000096
Ted Kremenek9beefec2009-02-17 19:28:04 +000097 /// Profile - Generates a hash profile of this RangeSet for use
98 /// by FoldingSet.
99 void Profile(llvm::FoldingSetNodeID &ID) const { ranges.Profile(ID); }
100
101 /// getConcreteValue - If a symbol is contrained to equal a specific integer
102 /// constant then this method returns that value. Otherwise, it returns
103 /// NULL.
104 const llvm::APSInt* getConcreteValue() const {
105 return ranges.isSingleton() ? ranges.begin()->getConcreteValue() : 0;
Ted Kremenek45021952009-02-14 17:08:39 +0000106 }
107
Ted Kremenek9beefec2009-02-17 19:28:04 +0000108 /// AddEQ - Create a new RangeSet with the additional constraint that the
109 /// value be equal to V.
110 RangeSet AddEQ(BasicValueFactory &BV, Factory &F, const llvm::APSInt &V) {
111 // Search for a range that includes 'V'. If so, return a new RangeSet
112 // representing { [V, V] }.
113 for (PrimRangeSet::iterator i = begin(), e = end(); i!=e; ++i)
114 if (i->Includes(V))
115 return RangeSet(F, V, V);
116
117 return RangeSet(F);
Ted Kremenek45021952009-02-14 17:08:39 +0000118 }
119
Ted Kremenek9beefec2009-02-17 19:28:04 +0000120 /// AddNE - Create a new RangeSet with the additional constraint that the
121 /// value be not be equal to V.
122 RangeSet AddNE(BasicValueFactory &BV, Factory &F, const llvm::APSInt &V) {
123 PrimRangeSet newRanges = ranges;
Mike Stump1eb44332009-09-09 15:08:12 +0000124
Ted Kremenek9beefec2009-02-17 19:28:04 +0000125 // FIXME: We can perhaps enhance ImmutableSet to do this search for us
126 // in log(N) time using the sorted property of the internal AVL tree.
127 for (iterator i = begin(), e = end(); i != e; ++i) {
128 if (i->Includes(V)) {
129 // Remove the old range.
130 newRanges = F.Remove(newRanges, *i);
131 // Split the old range into possibly one or two ranges.
132 if (V != i->From())
133 newRanges = F.Add(newRanges, Range(i->From(), BV.Sub1(V)));
134 if (V != i->To())
135 newRanges = F.Add(newRanges, Range(BV.Add1(V), i->To()));
Mike Stump1eb44332009-09-09 15:08:12 +0000136 // All of the ranges are non-overlapping, so we can stop.
Ted Kremenek9beefec2009-02-17 19:28:04 +0000137 break;
Ted Kremenek45021952009-02-14 17:08:39 +0000138 }
139 }
Mike Stump1eb44332009-09-09 15:08:12 +0000140
Ted Kremenek9beefec2009-02-17 19:28:04 +0000141 return newRanges;
Ted Kremenek45021952009-02-14 17:08:39 +0000142 }
143
Ted Kremenek9beefec2009-02-17 19:28:04 +0000144 /// AddNE - Create a new RangeSet with the additional constraint that the
145 /// value be less than V.
146 RangeSet AddLT(BasicValueFactory &BV, Factory &F, const llvm::APSInt &V) {
147 PrimRangeSet newRanges = F.GetEmptySet();
148
149 for (iterator i = begin(), e = end() ; i != e ; ++i) {
150 if (i->Includes(V) && i->From() < V)
151 newRanges = F.Add(newRanges, Range(i->From(), BV.Sub1(V)));
152 else if (i->To() < V)
153 newRanges = F.Add(newRanges, *i);
154 }
Mike Stump1eb44332009-09-09 15:08:12 +0000155
Ted Kremenek9beefec2009-02-17 19:28:04 +0000156 return newRanges;
Ted Kremenek45021952009-02-14 17:08:39 +0000157 }
158
Ted Kremenek9beefec2009-02-17 19:28:04 +0000159 RangeSet AddLE(BasicValueFactory &BV, Factory &F, const llvm::APSInt &V) {
160 PrimRangeSet newRanges = F.GetEmptySet();
Ted Kremenek45021952009-02-14 17:08:39 +0000161
Ted Kremenek9beefec2009-02-17 19:28:04 +0000162 for (iterator i = begin(), e = end(); i != e; ++i) {
163 // Strictly we should test for includes *V + 1, but no harm is
Ted Kremenek45021952009-02-14 17:08:39 +0000164 // done by this formulation
Ted Kremenek9beefec2009-02-17 19:28:04 +0000165 if (i->Includes(V))
166 newRanges = F.Add(newRanges, Range(i->From(), V));
167 else if (i->To() <= V)
168 newRanges = F.Add(newRanges, *i);
Ted Kremenek45021952009-02-14 17:08:39 +0000169 }
Mike Stump1eb44332009-09-09 15:08:12 +0000170
Ted Kremenek9beefec2009-02-17 19:28:04 +0000171 return newRanges;
Ted Kremenek45021952009-02-14 17:08:39 +0000172 }
173
Ted Kremenek9beefec2009-02-17 19:28:04 +0000174 RangeSet AddGT(BasicValueFactory &BV, Factory &F, const llvm::APSInt &V) {
175 PrimRangeSet newRanges = F.GetEmptySet();
Ted Kremenek45021952009-02-14 17:08:39 +0000176
Ted Kremenek9beefec2009-02-17 19:28:04 +0000177 for (PrimRangeSet::iterator i = begin(), e = end(); i != e; ++i) {
178 if (i->Includes(V) && i->To() > V)
179 newRanges = F.Add(newRanges, Range(BV.Add1(V), i->To()));
180 else if (i->From() > V)
181 newRanges = F.Add(newRanges, *i);
Ted Kremenek45021952009-02-14 17:08:39 +0000182 }
Mike Stump1eb44332009-09-09 15:08:12 +0000183
Ted Kremenek9beefec2009-02-17 19:28:04 +0000184 return newRanges;
Ted Kremenek45021952009-02-14 17:08:39 +0000185 }
186
Ted Kremenek9beefec2009-02-17 19:28:04 +0000187 RangeSet AddGE(BasicValueFactory &BV, Factory &F, const llvm::APSInt &V) {
188 PrimRangeSet newRanges = F.GetEmptySet();
Ted Kremenek45021952009-02-14 17:08:39 +0000189
Ted Kremenek9beefec2009-02-17 19:28:04 +0000190 for (PrimRangeSet::iterator i = begin(), e = end(); i != e; ++i) {
191 // Strictly we should test for includes *V - 1, but no harm is
Ted Kremenek45021952009-02-14 17:08:39 +0000192 // done by this formulation
Ted Kremenek9beefec2009-02-17 19:28:04 +0000193 if (i->Includes(V))
194 newRanges = F.Add(newRanges, Range(V, i->To()));
195 else if (i->From() >= V)
196 newRanges = F.Add(newRanges, *i);
Ted Kremenek45021952009-02-14 17:08:39 +0000197 }
198
Ted Kremenek9beefec2009-02-17 19:28:04 +0000199 return newRanges;
Ted Kremenek45021952009-02-14 17:08:39 +0000200 }
201
Ted Kremenek53ba0b62009-06-24 23:06:47 +0000202 void print(llvm::raw_ostream &os) const {
Ted Kremenek9beefec2009-02-17 19:28:04 +0000203 bool isFirst = true;
Ted Kremenek45021952009-02-14 17:08:39 +0000204 os << "{ ";
Ted Kremenek9beefec2009-02-17 19:28:04 +0000205 for (iterator i = begin(), e = end(); i != e; ++i) {
206 if (isFirst)
207 isFirst = false;
208 else
Ted Kremenek45021952009-02-14 17:08:39 +0000209 os << ", ";
Mike Stump1eb44332009-09-09 15:08:12 +0000210
Ted Kremenek45021952009-02-14 17:08:39 +0000211 os << '[' << i->From().toString(10) << ", " << i->To().toString(10)
212 << ']';
213 }
Mike Stump1eb44332009-09-09 15:08:12 +0000214 os << " }";
Ted Kremenek9beefec2009-02-17 19:28:04 +0000215 }
Mike Stump1eb44332009-09-09 15:08:12 +0000216
Ted Kremenek45021952009-02-14 17:08:39 +0000217 bool operator==(const RangeSet &other) const {
218 return ranges == other.ranges;
219 }
220};
Ted Kremenekb103f012009-02-18 05:22:01 +0000221} // end anonymous namespace
Ted Kremenek45021952009-02-14 17:08:39 +0000222
Ted Kremenek9beefec2009-02-17 19:28:04 +0000223typedef llvm::ImmutableMap<SymbolRef,RangeSet> ConstraintRangeTy;
Ted Kremenek45021952009-02-14 17:08:39 +0000224
225namespace clang {
226template<>
Ted Kremenek9beefec2009-02-17 19:28:04 +0000227struct GRStateTrait<ConstraintRange>
228 : public GRStatePartialTrait<ConstraintRangeTy> {
Mike Stump1eb44332009-09-09 15:08:12 +0000229 static inline void* GDMIndex() { return &ConstraintRangeIndex; }
Ted Kremenek45021952009-02-14 17:08:39 +0000230};
Mike Stump1eb44332009-09-09 15:08:12 +0000231}
232
Ted Kremenek45021952009-02-14 17:08:39 +0000233namespace {
Kovarththanan Rajaratnamba5fb5a2009-11-28 06:07:30 +0000234class RangeConstraintManager : public SimpleConstraintManager{
Mike Stump1eb44332009-09-09 15:08:12 +0000235 RangeSet GetRange(const GRState *state, SymbolRef sym);
Ted Kremenek45021952009-02-14 17:08:39 +0000236public:
Ted Kremenekf1b82272009-06-18 23:20:05 +0000237 RangeConstraintManager() {}
Ted Kremenek45021952009-02-14 17:08:39 +0000238
239 const GRState* AssumeSymNE(const GRState* St, SymbolRef sym,
Ted Kremeneka591bc02009-06-18 22:57:13 +0000240 const llvm::APSInt& V);
Ted Kremenek45021952009-02-14 17:08:39 +0000241
242 const GRState* AssumeSymEQ(const GRState* St, SymbolRef sym,
Ted Kremeneka591bc02009-06-18 22:57:13 +0000243 const llvm::APSInt& V);
Ted Kremenek45021952009-02-14 17:08:39 +0000244
245 const GRState* AssumeSymLT(const GRState* St, SymbolRef sym,
Ted Kremeneka591bc02009-06-18 22:57:13 +0000246 const llvm::APSInt& V);
Ted Kremenek45021952009-02-14 17:08:39 +0000247
248 const GRState* AssumeSymGT(const GRState* St, SymbolRef sym,
Ted Kremeneka591bc02009-06-18 22:57:13 +0000249 const llvm::APSInt& V);
Ted Kremenek45021952009-02-14 17:08:39 +0000250
251 const GRState* AssumeSymGE(const GRState* St, SymbolRef sym,
Ted Kremeneka591bc02009-06-18 22:57:13 +0000252 const llvm::APSInt& V);
Ted Kremenek45021952009-02-14 17:08:39 +0000253
254 const GRState* AssumeSymLE(const GRState* St, SymbolRef sym,
Ted Kremeneka591bc02009-06-18 22:57:13 +0000255 const llvm::APSInt& V);
Ted Kremenek45021952009-02-14 17:08:39 +0000256
Ted Kremenek45021952009-02-14 17:08:39 +0000257 const llvm::APSInt* getSymVal(const GRState* St, SymbolRef sym) const;
Mike Stump1eb44332009-09-09 15:08:12 +0000258
Ted Kremenek9beefec2009-02-17 19:28:04 +0000259 // FIXME: Refactor into SimpleConstraintManager?
260 bool isEqual(const GRState* St, SymbolRef sym, const llvm::APSInt& V) const {
261 const llvm::APSInt *i = getSymVal(St, sym);
262 return i ? *i == V : false;
263 }
Ted Kremenek45021952009-02-14 17:08:39 +0000264
Ted Kremenek45021952009-02-14 17:08:39 +0000265 const GRState* RemoveDeadBindings(const GRState* St, SymbolReaper& SymReaper);
266
Mike Stump1eb44332009-09-09 15:08:12 +0000267 void print(const GRState* St, llvm::raw_ostream& Out,
Ted Kremenek45021952009-02-14 17:08:39 +0000268 const char* nl, const char *sep);
269
270private:
Ted Kremenek9beefec2009-02-17 19:28:04 +0000271 RangeSet::Factory F;
Ted Kremenek45021952009-02-14 17:08:39 +0000272};
273
274} // end anonymous namespace
275
Ted Kremenekf1b82272009-06-18 23:20:05 +0000276ConstraintManager* clang::CreateRangeConstraintManager(GRStateManager&) {
277 return new RangeConstraintManager();
Ted Kremenek45021952009-02-14 17:08:39 +0000278}
279
Ted Kremenek45021952009-02-14 17:08:39 +0000280const llvm::APSInt* RangeConstraintManager::getSymVal(const GRState* St,
281 SymbolRef sym) const {
Ted Kremenek9beefec2009-02-17 19:28:04 +0000282 const ConstraintRangeTy::data_type *T = St->get<ConstraintRange>(sym);
283 return T ? T->getConcreteValue() : NULL;
Ted Kremenek45021952009-02-14 17:08:39 +0000284}
285
286/// Scan all symbols referenced by the constraints. If the symbol is not alive
287/// as marked in LSymbols, mark it as dead in DSymbols.
288const GRState*
Ted Kremenekc8781382009-06-17 22:28:13 +0000289RangeConstraintManager::RemoveDeadBindings(const GRState* state,
Ted Kremenek45021952009-02-14 17:08:39 +0000290 SymbolReaper& SymReaper) {
Ted Kremenek45021952009-02-14 17:08:39 +0000291
Ted Kremenekc8781382009-06-17 22:28:13 +0000292 ConstraintRangeTy CR = state->get<ConstraintRange>();
293 ConstraintRangeTy::Factory& CRFactory = state->get_context<ConstraintRange>();
Ted Kremenek45021952009-02-14 17:08:39 +0000294
Ted Kremenek9beefec2009-02-17 19:28:04 +0000295 for (ConstraintRangeTy::iterator I = CR.begin(), E = CR.end(); I != E; ++I) {
Mike Stump1eb44332009-09-09 15:08:12 +0000296 SymbolRef sym = I.getKey();
Ted Kremenek45021952009-02-14 17:08:39 +0000297 if (SymReaper.maybeDead(sym))
298 CR = CRFactory.Remove(CR, sym);
299 }
Mike Stump1eb44332009-09-09 15:08:12 +0000300
Ted Kremenekc8781382009-06-17 22:28:13 +0000301 return state->set<ConstraintRange>(CR);
Ted Kremenek45021952009-02-14 17:08:39 +0000302}
303
Ted Kremenek9beefec2009-02-17 19:28:04 +0000304//===------------------------------------------------------------------------===
305// AssumeSymX methods: public interface for RangeConstraintManager.
306//===------------------------------------------------------------------------===/
307
308RangeSet
Ted Kremenekc8781382009-06-17 22:28:13 +0000309RangeConstraintManager::GetRange(const GRState *state, SymbolRef sym) {
310 if (ConstraintRangeTy::data_type* V = state->get<ConstraintRange>(sym))
Ted Kremenek9beefec2009-02-17 19:28:04 +0000311 return *V;
Mike Stump1eb44332009-09-09 15:08:12 +0000312
Ted Kremenek9beefec2009-02-17 19:28:04 +0000313 // Lazily generate a new RangeSet representing all possible values for the
314 // given symbol type.
Ted Kremenekc8781382009-06-17 22:28:13 +0000315 QualType T = state->getSymbolManager().getType(sym);
Mike Stump1eb44332009-09-09 15:08:12 +0000316 BasicValueFactory& BV = state->getBasicVals();
Ted Kremenek9beefec2009-02-17 19:28:04 +0000317 return RangeSet(F, BV.getMinValue(T), BV.getMaxValue(T));
318}
319
320//===------------------------------------------------------------------------===
321// AssumeSymX methods: public interface for RangeConstraintManager.
322//===------------------------------------------------------------------------===/
323
324#define AssumeX(OP)\
325const GRState*\
Ted Kremenekc8781382009-06-17 22:28:13 +0000326RangeConstraintManager::AssumeSym ## OP(const GRState* state, SymbolRef sym,\
Ted Kremeneka591bc02009-06-18 22:57:13 +0000327 const llvm::APSInt& V){\
Ted Kremenekc8781382009-06-17 22:28:13 +0000328 const RangeSet& R = GetRange(state, sym).Add##OP(state->getBasicVals(), F, V);\
Ted Kremeneka591bc02009-06-18 22:57:13 +0000329 return !R.isEmpty() ? state->set<ConstraintRange>(sym, R) : NULL;\
Ted Kremenek9beefec2009-02-17 19:28:04 +0000330}
331
332AssumeX(EQ)
333AssumeX(NE)
334AssumeX(LT)
335AssumeX(GT)
336AssumeX(LE)
337AssumeX(GE)
338
339//===------------------------------------------------------------------------===
340// Pretty-printing.
341//===------------------------------------------------------------------------===/
342
Mike Stump1eb44332009-09-09 15:08:12 +0000343void RangeConstraintManager::print(const GRState* St, llvm::raw_ostream& Out,
Ted Kremenek45021952009-02-14 17:08:39 +0000344 const char* nl, const char *sep) {
Mike Stump1eb44332009-09-09 15:08:12 +0000345
Ted Kremenek9beefec2009-02-17 19:28:04 +0000346 ConstraintRangeTy Ranges = St->get<ConstraintRange>();
Mike Stump1eb44332009-09-09 15:08:12 +0000347
Ted Kremenekdd28d002009-02-16 18:42:56 +0000348 if (Ranges.isEmpty())
349 return;
Mike Stump1eb44332009-09-09 15:08:12 +0000350
Ted Kremenekdd28d002009-02-16 18:42:56 +0000351 Out << nl << sep << "ranges of symbol values:";
Mike Stump1eb44332009-09-09 15:08:12 +0000352
Ted Kremenek9beefec2009-02-17 19:28:04 +0000353 for (ConstraintRangeTy::iterator I=Ranges.begin(), E=Ranges.end(); I!=E; ++I){
Ted Kremenekec751c42009-04-21 22:37:11 +0000354 Out << nl << ' ' << I.getKey() << " : ";
Ted Kremenek53ba0b62009-06-24 23:06:47 +0000355 I.getData().print(Out);
Ted Kremenek45021952009-02-14 17:08:39 +0000356 }
Ted Kremenek45021952009-02-14 17:08:39 +0000357}