From d2f335bb6be7c6739223ea68edf453a7f8f53401 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Sat, 18 Mar 2017 10:40:33 +0000 Subject: [WIP] Fix bug where stats would not be updated on early exit caused by finding a bug with the `-exit-on-error` option enabled. --- tools/klee/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index c65953d1..337d23a4 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -422,6 +422,7 @@ void KleeHandler::processTestCase(const ExecutionState &state, const char *errorSuffix) { if (errorMessage && ExitOnError) { llvm::errs() << "EXITING ON ERROR:\n" << errorMessage << "\n"; + m_interpreter->prepareForEarlyExit(); exit(1); } -- cgit 1.4.1