diff options
author | Zekun Shen <bruceshenzk@gmail.com> | 2018-04-27 18:34:21 +0000 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2018-04-28 06:12:11 +0100 |
commit | 955877705da82a6d0a5bc2cc5c1e55fe8c92c040 (patch) | |
tree | 183caef59794da2a9e95ea1052ad45d6fc6b9855 /tools | |
parent | e0f9cda8568e0717d238f6bbba6f0de48df9d7c6 (diff) | |
download | klee-955877705da82a6d0a5bc2cc5c1e55fe8c92c040.tar.gz |
exitOnError no output buf fix
Diffstat (limited to 'tools')
-rw-r--r-- | tools/klee/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 2b2fe3eb..ec951609 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -393,11 +393,6 @@ llvm::raw_fd_ostream *KleeHandler::openTestFile(const std::string &suffix, void KleeHandler::processTestCase(const ExecutionState &state, const char *errorMessage, const char *errorSuffix) { - if (errorMessage && OptExitOnError) { - m_interpreter->prepareForEarlyExit(); - klee_error("EXITING ON ERROR:\n%s\n", errorMessage); - } - if (!NoOutput) { std::vector< std::pair<std::string, std::vector<unsigned char> > > out; bool success = m_interpreter->getSymbolicSolution(state, out); @@ -520,6 +515,11 @@ void KleeHandler::processTestCase(const ExecutionState &state, delete f; } } + + if (errorMessage && OptExitOnError) { + m_interpreter->prepareForEarlyExit(); + klee_error("EXITING ON ERROR:\n%s\n", errorMessage); + } } // load a .path file |