]> granicus.if.org Git - clang/commitdiff
[analyzer] Add the stat for the number of successfully explored paths.
authorAnna Zaks <ganna@apple.com>
Thu, 22 Mar 2012 21:06:06 +0000 (21:06 +0000)
committerAnna Zaks <ganna@apple.com>
Thu, 22 Mar 2012 21:06:06 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153281 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/CoreEngine.cpp

index 40af96a214b90960c34ae8c6e14cb44321b77803..fac368c8f20e7748647370e1d815523248f6367c 100644 (file)
@@ -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++;
+    }
   }
 }