typedef StoreManager::DeadSymbolsTy DeadSymbolsTy;
- const GRState* AddDecl(const GRState* St, const VarDecl* VD, Expr* Ex,
- unsigned Count);
+ const GRState* BindDecl(const GRState* St, const VarDecl* VD, Expr* Ex,
+ unsigned Count);
/// BindCompoundLiteral - Return the state that has the bindings currently
/// in 'state' plus the bindings for the CompoundLiteral. 'R' is the region
llvm::SmallVectorImpl<const MemRegion*>& RegionRoots,
LiveSymbolsTy& LSymbols, DeadSymbolsTy& DSymbols) = 0;
- virtual Store AddDecl(Store store,
- const VarDecl* VD, Expr* Ex,
- SVal InitVal = UndefinedVal(),
- unsigned Count = 0) = 0;
+ virtual Store BindDecl(Store store,
+ const VarDecl* VD, Expr* Ex,
+ SVal InitVal = UndefinedVal(),
+ unsigned Count = 0) = 0;
virtual void print(Store store, std::ostream& Out,
const char* nl, const char *sep) = 0;
void iterBindings(Store store, BindingsHandler& f);
- Store AddDecl(Store store, const VarDecl* VD, Expr* Ex,
- SVal InitVal = UndefinedVal(), unsigned Count = 0);
+ Store BindDecl(Store store, const VarDecl* VD, Expr* Ex,
+ SVal InitVal = UndefinedVal(), unsigned Count = 0);
static inline VarBindingsTy GetVarBindings(Store store) {
return VarBindingsTy(static_cast<const VarBindingsTy::TreeTy*>(store));
return St;
}
-Store BasicStoreManager::AddDecl(Store store,
- const VarDecl* VD, Expr* Ex,
- SVal InitVal, unsigned Count) {
-
+Store BasicStoreManager::BindDecl(Store store, const VarDecl* VD, Expr* Ex,
+ SVal InitVal, unsigned Count) {
BasicValueFactory& BasicVals = StateMgr.getBasicVals();
SymbolManager& SymMgr = StateMgr.getSymbolManager();
for (NodeSet::iterator I=Tmp.begin(), E=Tmp.end(); I!=E; ++I) {
const GRState* St = GetState(*I);
- St = StateMgr.AddDecl(St, VD, Ex, Builder->getCurrentBlockCount());
+ St = StateMgr.BindDecl(St, VD, Ex, Builder->getCurrentBlockCount());
MakeNode(Dst, DS, *I, St);
}
}
return getPersistentState(NewSt);
}
-const GRState* GRStateManager::AddDecl(const GRState* St, const VarDecl* VD,
- Expr* Ex, unsigned Count) {
+const GRState* GRStateManager::BindDecl(const GRState* St, const VarDecl* VD,
+ Expr* Ex, unsigned Count) {
Store OldStore = St->getStore();
Store NewStore;
if (Ex)
- NewStore = StoreMgr->AddDecl(OldStore, VD, Ex,
- GetSVal(St, Ex), Count);
+ NewStore = StoreMgr->BindDecl(OldStore, VD, Ex, GetSVal(St, Ex), Count);
else
- NewStore = StoreMgr->AddDecl(OldStore, VD, Ex);
+ NewStore = StoreMgr->BindDecl(OldStore, VD, Ex);
if (NewStore == OldStore)
return St;
return store;
}
- Store AddDecl(Store store, const VarDecl* VD, Expr* Ex, SVal InitVal,
- unsigned Count);
+ Store BindDecl(Store store, const VarDecl* VD, Expr* Ex, SVal InitVal,
+ unsigned Count);
static inline RegionBindingsTy GetRegionBindings(Store store) {
return RegionBindingsTy(static_cast<const RegionBindingsTy::TreeTy*>(store));
return St;
}
-Store RegionStoreManager::AddDecl(Store store,
- const VarDecl* VD, Expr* Ex,
- SVal InitVal, unsigned Count) {
+Store RegionStoreManager::BindDecl(Store store, const VarDecl* VD, Expr* Ex,
+ SVal InitVal, unsigned Count) {
BasicValueFactory& BasicVals = StateMgr.getBasicVals();
SymbolManager& SymMgr = StateMgr.getSymbolManager();