diff options
author | Anna Zaks <ganna@apple.com> | 2012-03-22 21:06:06 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-03-22 21:06:06 +0000 |
commit | a407b59ce821ad178ccd4c8ea474e13351aca906 (patch) | |
tree | fa21cffee4663cb8ea206c11fe5afc1b67156eaf /clang/lib/StaticAnalyzer/Core/CoreEngine.cpp | |
parent | 06bf78c242acbad0d8908254d47e659a14512057 (diff) | |
download | bcm5719-llvm-a407b59ce821ad178ccd4c8ea474e13351aca906.tar.gz bcm5719-llvm-a407b59ce821ad178ccd4c8ea474e13351aca906.zip |
[analyzer] Add the stat for the number of successfully explored paths.
llvm-svn: 153281
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/CoreEngine.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/CoreEngine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp index 40af96a214b..fac368c8f20 100644 --- a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp +++ b/clang/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++; + } } } |