diff options
Diffstat (limited to 'lib/StaticAnalyzer/Core/CoreEngine.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/CoreEngine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/CoreEngine.cpp b/lib/StaticAnalyzer/Core/CoreEngine.cpp index 40af96a214..fac368c8f2 100644 --- a/lib/StaticAnalyzer/Core/CoreEngine.cpp +++ b/lib/StaticAnalyzer/Core/CoreEngine.cpp @@ -29,6 +29,8 @@ using namespace ento; STATISTIC(NumReachedMaxSteps, "The # of times we reached the max number of steps."); +STATISTIC(NumPathsExplored, + "The # of paths explored by the analyzer."); //===----------------------------------------------------------------------===// // Worklist classes for exploration of reachable states. @@ -547,8 +549,10 @@ void CoreEngine::enqueueEndOfFunction(ExplodedNodeSet &Set) { N = generateCallExitNode(N); if (N) WList->enqueue(N); - } else + } else { G->addEndOfPath(N); + NumPathsExplored++; + } } } |