Skip to content

Commit

Permalink
[fix] Fix stats
Browse files Browse the repository at this point in the history
  • Loading branch information
misonijnik committed Oct 6, 2023
1 parent 532bcff commit 8798ea5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/klee/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ void KleeHandler::processTestCase(const ExecutionState &state,
klee_warning("unable to get symbolic solution, losing test case");

const auto start_time = time::getWallTime();
bool atLeastOneGenerated = false;

if (WriteKTests) {

Expand All @@ -602,7 +603,7 @@ void KleeHandler::processTestCase(const ExecutionState &state,
getOutputFilename(getTestFilename("ktest", id)).c_str())) {
klee_warning("unable to write output test case, losing it");
} else {
++m_numGeneratedTests;
atLeastOneGenerated = true;
}

if (WriteStates) {
Expand Down Expand Up @@ -691,6 +692,10 @@ void KleeHandler::processTestCase(const ExecutionState &state,

if (WriteXMLTests) {
writeTestCaseXML(message != nullptr, ktest, id);
atLeastOneGenerated = true;
}

if (atLeastOneGenerated) {
++m_numGeneratedTests;
}

Expand Down

0 comments on commit 8798ea5

Please sign in to comment.