Lines Matching defs:RefState
137 class RefState {
159 RefState(Kind k, const Stmt *s, AllocationFamily family)
173 bool operator==(const RefState &X) const {
177 static RefState getAllocated(AllocationFamily family, const Stmt *s) {
178 return RefState(Allocated, s, family);
180 static RefState getAllocatedOfSizeZero(const RefState *RS) {
181 return RefState(AllocatedOfSizeZero, RS->getStmt(),
184 static RefState getReleased(AllocationFamily family, const Stmt *s) {
185 return RefState(Released, s, family);
187 static RefState getRelinquished(AllocationFamily family, const Stmt *s) {
188 return RefState(Relinquished, s, family);
190 static RefState getEscaped(const RefState *RS) {
191 return RefState(Escaped, RS->getStmt(), RS->getAllocationFamily());
216 REGISTER_MAP_WITH_PROGRAMSTATE(RegionState, SymbolRef, RefState)
221 /// Update the RefState to reflect the new memory allocation.
727 const Expr *DeallocExpr, const RefState *RS,
886 static inline bool isAllocated(const RefState *RSCurr, const RefState *RSPrev,
897 static inline bool isReleased(const RefState *RSCurr, const RefState *RSPrev,
907 static inline bool isRelinquished(const RefState *RSCurr,
908 const RefState *RSPrev, const Stmt *Stmt) {
919 static inline bool hasReallocFailed(const RefState *RSCurr,
920 const RefState *RSPrev,
1517 const RefState *RS = State->get<RegionState>(Sym);
1521 RefState::getAllocatedOfSizeZero(RS));
1823 return State->set<RegionState>(Sym, RefState::getAllocated(Family, E));
2035 const RefState *RsBase = State->get<RegionState>(SymBase);
2112 RefState::getRelinquished(Family,
2116 RefState::getReleased(Family, ParentExpr));
2160 const RefState *RS = C.getState()->get<RegionState>(Sym);
2333 const RefState *RS, SymbolRef Sym,
2787 const RefState *RS = C.getState()->get<RegionState>(Sym);
3048 const RefState *RS = C.getState()->get<RegionState>(Sym);
3074 if (const RefState *RS = State->get<RegionState>(Sym))
3075 State = State->set<RegionState>(Sym, RefState::getEscaped(RS));
3096 if (const RefState *RS = C.getState()->get<RegionState>(Sym)) {
3149 if (const RefState *RS = state->get<RegionState>(ReallocSym)) {
3154 RefState::getAllocated(RS->getAllocationFamily(), RS->getStmt()));
3351 static bool checkIfNewOrNewArrayFamily(const RefState *RS) {
3374 if (const RefState *RS = State->get<RegionState>(sym))
3377 State = State->set<RegionState>(sym, RefState::getEscaped(RS));
3428 const RefState *RSCurr = state->get<RegionState>(Sym);
3429 const RefState *RSPrev = statePrev->get<RegionState>(Sym);
3630 const RefState *RefS = State->get<RegionState>(Sym);
3654 return State->set<RegionState>(Sym, RefState::getReleased(Family, Origin));