Browse Source

[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
Anna Zaks 13 years ago
parent
commit
638e2d31fc
1 changed files with 5 additions and 1 deletions
  1. 5 1
      lib/StaticAnalyzer/Core/CoreEngine.cpp

+ 5 - 1
lib/StaticAnalyzer/Core/CoreEngine.cpp

@@ -29,6 +29,8 @@ using namespace ento;
 
 
 STATISTIC(NumReachedMaxSteps,
 STATISTIC(NumReachedMaxSteps,
             "The # of times we reached the max number of steps.");
             "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.
 // Worklist classes for exploration of reachable states.
@@ -547,8 +549,10 @@ void CoreEngine::enqueueEndOfFunction(ExplodedNodeSet &Set) {
       N = generateCallExitNode(N);
       N = generateCallExitNode(N);
       if (N)
       if (N)
         WList->enqueue(N);
         WList->enqueue(N);
-    } else
+    } else {
       G->addEndOfPath(N);
       G->addEndOfPath(N);
+      NumPathsExplored++;
+    }
   }
   }
 }
 }