aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/CoreEngine.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-03-22 21:06:06 +0000
committerAnna Zaks <ganna@apple.com>2012-03-22 21:06:06 +0000
commit638e2d31fceed041e7e16aada4188c94cb5797bb (patch)
treec62e83d5d31ebdb370cf4c32883688564c46036e /lib/StaticAnalyzer/Core/CoreEngine.cpp
parent749bbe6f5f23676244f12a0d41511c8e73516feb (diff)
[analyzer] Add the stat for the number of successfully explored paths.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/CoreEngine.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/CoreEngine.cpp6
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++;
+ }
}
}