Skip to content

Commit 88414c8

Browse files
authored
[analyzer][NFC] Remove dead code (#83968)
Remove the unused method `CoreEngine::ExecuteWorkListWithInitialState`.
1 parent 6862233 commit 88414c8

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,6 @@ class CoreEngine {
149149
bool ExecuteWorkList(const LocationContext *L, unsigned Steps,
150150
ProgramStateRef InitState);
151151

152-
/// Returns true if there is still simulation state on the worklist.
153-
bool ExecuteWorkListWithInitialState(const LocationContext *L,
154-
unsigned Steps,
155-
ProgramStateRef InitState,
156-
ExplodedNodeSet &Dst);
157-
158152
/// Dispatch the work list item based on the given location information.
159153
/// Use Pred parameter as the predecessor state.
160154
void dispatchWorkItem(ExplodedNode* Pred, ProgramPoint Loc,

clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,6 @@ class ExprEngine {
190190
return Engine.ExecuteWorkList(L, Steps, nullptr);
191191
}
192192

193-
/// Execute the work list with an initial state. Nodes that reaches the exit
194-
/// of the function are added into the Dst set, which represent the exit
195-
/// state of the function call. Returns true if there is still simulation
196-
/// state on the worklist.
197-
bool ExecuteWorkListWithInitialState(const LocationContext *L, unsigned Steps,
198-
ProgramStateRef InitState,
199-
ExplodedNodeSet &Dst) {
200-
return Engine.ExecuteWorkListWithInitialState(L, Steps, InitState, Dst);
201-
}
202-
203193
/// getContext - Return the ASTContext associated with this analysis.
204194
ASTContext &getContext() const { return AMgr.getASTContext(); }
205195

clang/lib/StaticAnalyzer/Core/CoreEngine.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,6 @@ void CoreEngine::dispatchWorkItem(ExplodedNode* Pred, ProgramPoint Loc,
222222
}
223223
}
224224

225-
bool CoreEngine::ExecuteWorkListWithInitialState(const LocationContext *L,
226-
unsigned Steps,
227-
ProgramStateRef InitState,
228-
ExplodedNodeSet &Dst) {
229-
bool DidNotFinish = ExecuteWorkList(L, Steps, InitState);
230-
for (ExplodedGraph::eop_iterator I = G.eop_begin(), E = G.eop_end(); I != E;
231-
++I) {
232-
Dst.Add(*I);
233-
}
234-
return DidNotFinish;
235-
}
236-
237225
void CoreEngine::HandleBlockEdge(const BlockEdge &L, ExplodedNode *Pred) {
238226
const CFGBlock *Blk = L.getDst();
239227
NodeBuilderContext BuilderCtx(*this, Blk, Pred);

0 commit comments

Comments
 (0)