Lines Matching refs:RefState
51 class RefState { class
72 RefState(Kind k, const Stmt *s, unsigned family) in RefState() function in __anone8977cbd0111::RefState
87 bool operator==(const RefState &X) const { in operator ==()
91 static RefState getAllocated(unsigned family, const Stmt *s) { in getAllocated()
92 return RefState(Allocated, s, family); in getAllocated()
94 static RefState getAllocatedOfSizeZero(const RefState *RS) { in getAllocatedOfSizeZero()
95 return RefState(AllocatedOfSizeZero, RS->getStmt(), in getAllocatedOfSizeZero()
98 static RefState getReleased(unsigned family, const Stmt *s) { in getReleased()
99 return RefState(Released, s, family); in getReleased()
101 static RefState getRelinquished(unsigned family, const Stmt *s) { in getRelinquished()
102 return RefState(Relinquished, s, family); in getRelinquished()
104 static RefState getEscaped(const RefState *RS) { in getEscaped()
105 return RefState(Escaped, RS->getStmt(), RS->getAllocationFamily()); in getEscaped()
352 bool(*CheckRefState)(const RefState*)) const;
373 const Expr *DeallocExpr, const RefState *RS,
427 inline bool isAllocated(const RefState *S, const RefState *SPrev, in isAllocated()
436 inline bool isReleased(const RefState *S, const RefState *SPrev, in isReleased()
443 inline bool isRelinquished(const RefState *S, const RefState *SPrev, in isRelinquished()
452 inline bool isReallocFailedCheck(const RefState *S, const RefState *SPrev, in isReallocFailedCheck()
512 REGISTER_MAP_WITH_PROGRAMSTATE(RegionState, SymbolRef, RefState)
905 const RefState *RS = State->get<RegionState>(Sym); in ProcessZeroAllocation()
909 RefState::getAllocatedOfSizeZero(RS)); in ProcessZeroAllocation()
1142 return State->set<RegionState>(Sym, RefState::getAllocated(Family, E)); in MallocUpdateRefState()
1386 const RefState *RsBase = State->get<RegionState>(SymBase); in FreeMemAux()
1454 RefState::getRelinquished(Family, in FreeMemAux()
1458 RefState::getReleased(Family, ParentExpr)); in FreeMemAux()
1506 const RefState *RS = C.getState()->get<RegionState>(Sym); in getCheckIfTracked()
1673 const RefState *RS, in ReportMismatchedDealloc()
2065 const RefState *RS = C.getState()->get<RegionState>(Sym); in reportLeak()
2294 const RefState *RS = C.getState()->get<RegionState>(Sym); in isReleased()
2313 if (const RefState *RS = C.getState()->get<RegionState>(Sym)) { in checkUseZeroAllocated()
2366 if (const RefState *RS = state->get<RegionState>(ReallocSym)) { in evalAssume()
2370 RefState::getAllocated(RS->getAllocationFamily(), RS->getStmt())); in evalAssume()
2544 static bool retTrue(const RefState *RS) { in retTrue()
2548 static bool checkIfNewOrNewArrayFamily(const RefState *RS) { in checkIfNewOrNewArrayFamily()
2572 bool(*CheckRefState)(const RefState*)) const { in checkPointerEscapeAux()
2591 if (const RefState *RS = State->get<RegionState>(sym)) { in checkPointerEscapeAux()
2595 State = State->set<RegionState>(sym, RefState::getEscaped(RS)); in checkPointerEscapeAux()
2625 const RefState *RS = state->get<RegionState>(Sym); in VisitNode()
2626 const RefState *RSPrev = statePrev->get<RegionState>(Sym); in VisitNode()
2713 const RefState *RefS = State->get<RegionState>(I.getKey()); in printState()