Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 1 | //== ValueState.h - Path-Sens. "State" for tracking valuues -----*- 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 | // |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 10 | // This files defines SymbolID, ExprBindKey, and ValueState. |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef LLVM_CLANG_ANALYSIS_VALUESTATE_H |
| 15 | #define LLVM_CLANG_ANALYSIS_VALUESTATE_H |
| 16 | |
| 17 | // FIXME: Reduce the number of includes. |
| 18 | |
| 19 | #include "RValues.h" |
| 20 | |
| 21 | #include "clang/Analysis/PathSensitive/GREngine.h" |
| 22 | #include "clang/AST/Expr.h" |
| 23 | #include "clang/AST/Decl.h" |
| 24 | #include "clang/AST/ASTContext.h" |
| 25 | #include "clang/Analysis/Analyses/LiveVariables.h" |
| 26 | |
| 27 | #include "llvm/Support/Casting.h" |
| 28 | #include "llvm/Support/DataTypes.h" |
| 29 | #include "llvm/ADT/APSInt.h" |
| 30 | #include "llvm/ADT/FoldingSet.h" |
| 31 | #include "llvm/ADT/ImmutableMap.h" |
| 32 | #include "llvm/ADT/SmallVector.h" |
| 33 | #include "llvm/ADT/SmallPtrSet.h" |
| 34 | #include "llvm/Support/Allocator.h" |
| 35 | #include "llvm/Support/Compiler.h" |
| 36 | #include "llvm/Support/Streams.h" |
| 37 | |
| 38 | #include <functional> |
| 39 | |
| 40 | namespace clang { |
| 41 | |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 42 | class ExprBindKey { |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 43 | uintptr_t Raw; |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 44 | void operator=(const ExprBindKey& RHS); // Do not implement. |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 45 | |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 46 | inline void* getPtr() const { |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 47 | return reinterpret_cast<void*>(Raw & ~Mask); |
| 48 | } |
| 49 | |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 50 | public: |
| 51 | enum Kind { IsSubExpr=0x0, IsBlkExpr=0x1, Mask=0x1 }; |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 52 | |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 53 | inline Kind getKind() const { |
| 54 | return (Kind) (Raw & Mask); |
| 55 | } |
| 56 | |
| 57 | inline Expr* getExpr() const { |
| 58 | return (Expr*) getPtr(); |
| 59 | } |
| 60 | |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 61 | ExprBindKey(Expr* E, bool isBlkExpr = false) |
| 62 | : Raw(reinterpret_cast<uintptr_t>(E) | (isBlkExpr ? IsBlkExpr : IsSubExpr)){ |
| 63 | assert(E && "Tracked statement cannot be NULL."); |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 64 | } |
| 65 | |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 66 | bool isSubExpr() const { return getKind() == IsSubExpr; } |
| 67 | bool isBlkExpr() const { return getKind() == IsBlkExpr; } |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 68 | |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 69 | inline void Profile(llvm::FoldingSetNodeID& ID) const { |
Ted Kremenek | 071679d | 2008-02-08 19:08:13 +0000 | [diff] [blame] | 70 | ID.AddPointer(getPtr()); |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 71 | } |
| 72 | |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 73 | inline bool operator==(const ExprBindKey& X) const { |
Ted Kremenek | 071679d | 2008-02-08 19:08:13 +0000 | [diff] [blame] | 74 | return getPtr() == X.getPtr(); |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 75 | } |
| 76 | |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 77 | inline bool operator!=(const ExprBindKey& X) const { |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 78 | return !operator==(X); |
| 79 | } |
| 80 | |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 81 | inline bool operator<(const ExprBindKey& X) const { |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 82 | return getPtr() < X.getPtr(); |
| 83 | } |
| 84 | }; |
| 85 | |
| 86 | //===----------------------------------------------------------------------===// |
| 87 | // ValueState - An ImmutableMap type Stmt*/Decl*/Symbols to RValues. |
| 88 | //===----------------------------------------------------------------------===// |
| 89 | |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 90 | namespace vstate { |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 91 | typedef llvm::ImmutableSet<llvm::APSInt*> IntSetTy; |
| 92 | |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 93 | typedef llvm::ImmutableMap<ExprBindKey,RValue> ExprBindingsTy; |
| 94 | typedef llvm::ImmutableMap<VarDecl*,RValue> VarBindingsTy; |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 95 | typedef llvm::ImmutableMap<SymbolID,IntSetTy> ConstantNotEqTy; |
| 96 | typedef llvm::ImmutableMap<SymbolID,const llvm::APSInt*> ConstantEqTy; |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 97 | } |
Ted Kremenek | 6f886bd | 2008-02-05 18:24:17 +0000 | [diff] [blame] | 98 | |
| 99 | /// ValueStateImpl - This class encapsulates the actual data values for |
| 100 | /// for a "state" in our symbolic value tracking. It is intended to be |
| 101 | /// used as a functional object; that is once it is created and made |
| 102 | /// "persistent" in a FoldingSet its values will never change. |
Ted Kremenek | a40ba02 | 2008-02-06 02:50:36 +0000 | [diff] [blame] | 103 | class ValueStateImpl : public llvm::FoldingSetNode { |
| 104 | private: |
| 105 | void operator=(const ValueStateImpl& R) const; |
| 106 | |
| 107 | public: |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 108 | vstate::ExprBindingsTy ExprBindings; |
Ted Kremenek | 53c641a | 2008-02-08 03:02:48 +0000 | [diff] [blame] | 109 | vstate::VarBindingsTy VarBindings; |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 110 | vstate::ConstantNotEqTy ConstantNotEq; |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 111 | vstate::ConstantEqTy ConstantEq; |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 112 | |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 113 | /// This ctor is used when creating the first ValueStateImpl object. |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 114 | ValueStateImpl(vstate::ExprBindingsTy EB, |
| 115 | vstate::VarBindingsTy VB, |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 116 | vstate::ConstantNotEqTy CNE, |
| 117 | vstate::ConstantEqTy CE) |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 118 | : ExprBindings(EB), VarBindings(VB), ConstantNotEq(CNE), ConstantEq(CE) {} |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 119 | |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 120 | /// Copy ctor - We must explicitly define this or else the "Next" ptr |
| 121 | /// in FoldingSetNode will also get copied. |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 122 | ValueStateImpl(const ValueStateImpl& RHS) |
Ted Kremenek | 6f886bd | 2008-02-05 18:24:17 +0000 | [diff] [blame] | 123 | : llvm::FoldingSetNode(), |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 124 | ExprBindings(RHS.ExprBindings), |
Ted Kremenek | 53c641a | 2008-02-08 03:02:48 +0000 | [diff] [blame] | 125 | VarBindings(RHS.VarBindings), |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 126 | ConstantNotEq(RHS.ConstantNotEq), |
| 127 | ConstantEq(RHS.ConstantEq) {} |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 128 | |
Ted Kremenek | a40ba02 | 2008-02-06 02:50:36 +0000 | [diff] [blame] | 129 | |
| 130 | |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 131 | /// Profile - Profile the contents of a ValueStateImpl object for use |
| 132 | /// in a FoldingSet. |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 133 | static void Profile(llvm::FoldingSetNodeID& ID, const ValueStateImpl& V) { |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 134 | V.ExprBindings.Profile(ID); |
Ted Kremenek | 53c641a | 2008-02-08 03:02:48 +0000 | [diff] [blame] | 135 | V.VarBindings.Profile(ID); |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 136 | V.ConstantNotEq.Profile(ID); |
| 137 | V.ConstantEq.Profile(ID); |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 138 | } |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 139 | |
| 140 | /// Profile - Used to profile the contents of this object for inclusion |
| 141 | /// in a FoldingSet. |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 142 | void Profile(llvm::FoldingSetNodeID& ID) const { |
| 143 | Profile(ID, *this); |
| 144 | } |
| 145 | |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 146 | }; |
| 147 | |
Ted Kremenek | 6f886bd | 2008-02-05 18:24:17 +0000 | [diff] [blame] | 148 | /// ValueState - This class represents a "state" in our symbolic value |
| 149 | /// tracking. It is really just a "smart pointer", wrapping a pointer |
| 150 | /// to ValueStateImpl object. Making this class a smart pointer means that its |
| 151 | /// size is always the size of a pointer, which allows easy conversion to |
| 152 | /// void* when being handled by GREngine. It also forces us to unique states; |
| 153 | /// consequently, a ValueStateImpl* with a specific address will always refer |
| 154 | /// to the unique state with those values. |
Ted Kremenek | a40ba02 | 2008-02-06 02:50:36 +0000 | [diff] [blame] | 155 | class ValueState { |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 156 | ValueStateImpl* Data; |
| 157 | public: |
Ted Kremenek | ed90021 | 2008-02-05 18:17:58 +0000 | [diff] [blame] | 158 | ValueState(ValueStateImpl* D) : Data(D) {} |
Ted Kremenek | a40ba02 | 2008-02-06 02:50:36 +0000 | [diff] [blame] | 159 | ValueState() : Data(0) {} |
Ted Kremenek | ed90021 | 2008-02-05 18:17:58 +0000 | [diff] [blame] | 160 | |
Ted Kremenek | cba2e43 | 2008-02-05 19:35:18 +0000 | [diff] [blame] | 161 | // Accessors. |
Ted Kremenek | ed90021 | 2008-02-05 18:17:58 +0000 | [diff] [blame] | 162 | ValueStateImpl* getImpl() const { return Data; } |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 163 | |
Ted Kremenek | cba2e43 | 2008-02-05 19:35:18 +0000 | [diff] [blame] | 164 | // Typedefs. |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 165 | typedef vstate::IntSetTy IntSetTy; |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 166 | typedef vstate::ExprBindingsTy ExprBindingsTy; |
| 167 | typedef vstate::VarBindingsTy VarBindingsTy; |
Ted Kremenek | cba2e43 | 2008-02-05 19:35:18 +0000 | [diff] [blame] | 168 | typedef vstate::ConstantNotEqTy ConstantNotEqTy; |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 169 | typedef vstate::ConstantEqTy ConstantEqTy; |
| 170 | |
Ted Kremenek | cba2e43 | 2008-02-05 19:35:18 +0000 | [diff] [blame] | 171 | typedef llvm::SmallVector<ValueState,5> BufferTy; |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 172 | |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 173 | // Queries. |
| 174 | |
| 175 | bool isNotEqual(SymbolID sym, const llvm::APSInt& V) const; |
| 176 | const llvm::APSInt* getSymVal(SymbolID sym) const; |
| 177 | |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 178 | // Iterators. |
| 179 | |
Ted Kremenek | 53c641a | 2008-02-08 03:02:48 +0000 | [diff] [blame] | 180 | typedef VarBindingsTy::iterator vb_iterator; |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 181 | vb_iterator vb_begin() { return Data->VarBindings.begin(); } |
| 182 | vb_iterator vb_end() { return Data->VarBindings.end(); } |
| 183 | |
| 184 | typedef ExprBindingsTy::iterator eb_iterator; |
| 185 | eb_iterator eb_begin() { return Data->ExprBindings.begin(); } |
| 186 | eb_iterator eb_end() { return Data->ExprBindings.end(); } |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 187 | |
Ted Kremenek | ed90021 | 2008-02-05 18:17:58 +0000 | [diff] [blame] | 188 | // Profiling and equality testing. |
| 189 | |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 190 | bool operator==(const ValueState& RHS) const { |
| 191 | return Data == RHS.Data; |
| 192 | } |
| 193 | |
| 194 | static void Profile(llvm::FoldingSetNodeID& ID, const ValueState& V) { |
| 195 | ID.AddPointer(V.getImpl()); |
| 196 | } |
| 197 | |
| 198 | void Profile(llvm::FoldingSetNodeID& ID) const { |
| 199 | Profile(ID, *this); |
| 200 | } |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 201 | }; |
| 202 | |
| 203 | template<> struct GRTrait<ValueState> { |
| 204 | static inline void* toPtr(ValueState St) { |
| 205 | return reinterpret_cast<void*>(St.getImpl()); |
| 206 | } |
| 207 | static inline ValueState toState(void* P) { |
| 208 | return ValueState(static_cast<ValueStateImpl*>(P)); |
| 209 | } |
| 210 | }; |
| 211 | |
Ted Kremenek | e070a1d | 2008-02-04 21:59:01 +0000 | [diff] [blame] | 212 | |
| 213 | class ValueStateManager { |
| 214 | public: |
| 215 | typedef ValueState StateTy; |
| 216 | |
| 217 | private: |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 218 | ValueState::IntSetTy::Factory ISetFactory; |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 219 | ValueState::ExprBindingsTy::Factory EXFactory; |
| 220 | ValueState::VarBindingsTy::Factory VBFactory; |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 221 | ValueState::ConstantNotEqTy::Factory CNEFactory; |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 222 | ValueState::ConstantEqTy::Factory CEFactory; |
Ted Kremenek | 174aea4 | 2008-02-05 18:51:06 +0000 | [diff] [blame] | 223 | |
| 224 | /// StateSet - FoldingSet containing all the states created for analyzing |
| 225 | /// a particular function. This is used to unique states. |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 226 | llvm::FoldingSet<ValueStateImpl> StateSet; |
Ted Kremenek | e070a1d | 2008-02-04 21:59:01 +0000 | [diff] [blame] | 227 | |
| 228 | /// ValueMgr - Object that manages the data for all created RValues. |
| 229 | ValueManager ValMgr; |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 230 | |
Ted Kremenek | e070a1d | 2008-02-04 21:59:01 +0000 | [diff] [blame] | 231 | /// SymMgr - Object that manages the symbol information. |
| 232 | SymbolManager SymMgr; |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 233 | |
| 234 | /// Alloc - A BumpPtrAllocator to allocate states. |
| 235 | llvm::BumpPtrAllocator& Alloc; |
| 236 | |
| 237 | StateTy getPersistentState(const ValueState& St); |
Ted Kremenek | e070a1d | 2008-02-04 21:59:01 +0000 | [diff] [blame] | 238 | |
| 239 | public: |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 240 | ValueStateManager(ASTContext& Ctx, llvm::BumpPtrAllocator& alloc) |
| 241 | : ValMgr(Ctx, alloc), Alloc(alloc) {} |
Ted Kremenek | e070a1d | 2008-02-04 21:59:01 +0000 | [diff] [blame] | 242 | |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 243 | StateTy getInitialState(); |
Ted Kremenek | e070a1d | 2008-02-04 21:59:01 +0000 | [diff] [blame] | 244 | |
| 245 | ValueManager& getValueManager() { return ValMgr; } |
| 246 | SymbolManager& getSymbolManager() { return SymMgr; } |
| 247 | |
Ted Kremenek | b87d909 | 2008-02-08 19:17:19 +0000 | [diff] [blame] | 248 | StateTy RemoveDeadBindings(StateTy St, Stmt* Loc, |
| 249 | const LiveVariables& Liveness); |
| 250 | |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 251 | StateTy SetValue(StateTy St, Expr* S, bool isBlkExpr, const RValue& V); |
Ted Kremenek | e070a1d | 2008-02-04 21:59:01 +0000 | [diff] [blame] | 252 | StateTy SetValue(StateTy St, const LValue& LV, const RValue& V); |
| 253 | |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 254 | RValue GetValue(const StateTy& St, Expr* S, bool* hasVal = NULL); |
Ted Kremenek | b87d909 | 2008-02-08 19:17:19 +0000 | [diff] [blame] | 255 | RValue GetValue(const StateTy& St, const LValue& LV, QualType* T = NULL); |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 256 | LValue GetLValue(const StateTy& St, Expr* S); |
Ted Kremenek | b87d909 | 2008-02-08 19:17:19 +0000 | [diff] [blame] | 257 | |
Ted Kremenek | d70b62e | 2008-02-08 20:29:23 +0000 | [diff] [blame] | 258 | StateTy Add(StateTy St, ExprBindKey K, const RValue& V); |
| 259 | StateTy Remove(StateTy St, ExprBindKey K); |
Ted Kremenek | 016f52f | 2008-02-08 21:10:02 +0000 | [diff] [blame^] | 260 | |
| 261 | StateTy Add(StateTy St, VarDecl* D, const RValue& V); |
| 262 | StateTy Remove(StateTy St, VarDecl* D); |
| 263 | |
Ted Kremenek | 9153f73 | 2008-02-05 07:17:49 +0000 | [diff] [blame] | 264 | StateTy getPersistentState(const ValueStateImpl& Impl); |
Ted Kremenek | 862d5bb | 2008-02-06 00:54:14 +0000 | [diff] [blame] | 265 | |
| 266 | StateTy AddEQ(StateTy St, SymbolID sym, const llvm::APSInt& V); |
| 267 | StateTy AddNE(StateTy St, SymbolID sym, const llvm::APSInt& V); |
Ted Kremenek | e070a1d | 2008-02-04 21:59:01 +0000 | [diff] [blame] | 268 | }; |
| 269 | |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 270 | } // end clang namespace |
| 271 | |
Ted Kremenek | a90ccfe | 2008-01-31 19:34:24 +0000 | [diff] [blame] | 272 | #endif |