From 78026968b7ee1abd97f39227ab7494a898c0d287 Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Thu, 5 Nov 2020 23:23:50 +0000 Subject: differentiate between partial and completed paths in summary and fix paths stats when not dumping states --- lib/Core/Executor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Core') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 2f806aad..fb83c883 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -3436,8 +3436,10 @@ bool Executor::checkMemoryUsage() { } void Executor::doDumpStates() { - if (!DumpStatesOnHalt || states.empty()) + if (!DumpStatesOnHalt || states.empty()) { + interpreterHandler->incPathsExplored(states.size()); return; + } klee_message("halting execution, dumping remaining states"); for (const auto &state : states) @@ -3638,6 +3640,7 @@ void Executor::terminateStateOnExit(ExecutionState &state) { if (!OnlyOutputStatesCoveringNew || state.coveredNew || (AlwaysOutputSeeds && seedMap.count(&state))) interpreterHandler->processTestCase(state, 0, 0); + interpreterHandler->incPathsCompleted(); terminateState(state); } -- cgit 1.4.1