diff options
author | Frank Busse <bb0xfb@gmail.com> | 2020-06-16 20:07:06 +0100 |
---|---|---|
committer | MartinNowack <2443641+MartinNowack@users.noreply.github.com> | 2020-06-24 13:48:18 +0100 |
commit | aef3ecea2868ea08fafe34632c395df29a99f633 (patch) | |
tree | 6934e350882741093f1532e2f11d7c419de6219a /lib/Core/Executor.cpp | |
parent | a36f7a20afaf6e477846cf72814ebe2c346d87ec (diff) | |
download | klee-aef3ecea2868ea08fafe34632c395df29a99f633.tar.gz |
add ExecutionState IDs
* add getID()/setID() * use ExecutionStateIDCompare in Executor::states set * output state id in .err files
Diffstat (limited to 'lib/Core/Executor.cpp')
-rw-r--r-- | lib/Core/Executor.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 83409983..03deeda7 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -3178,11 +3178,12 @@ void Executor::terminateStateOnError(ExecutionState &state, std::string MsgString; llvm::raw_string_ostream msg(MsgString); - msg << "Error: " << message << "\n"; + msg << "Error: " << message << '\n'; if (ii.file != "") { - msg << "File: " << ii.file << "\n"; - msg << "Line: " << ii.line << "\n"; - msg << "assembly.ll line: " << ii.assemblyLine << "\n"; + msg << "File: " << ii.file << '\n' + << "Line: " << ii.line << '\n' + << "assembly.ll line: " << ii.assemblyLine << '\n' + << "State: " << state.getID() << '\n'; } msg << "Stack: \n"; state.dumpStack(msg); @@ -3813,7 +3814,7 @@ void Executor::runFunctionAsMain(Function *f, } ExecutionState *state = new ExecutionState(kmodule->functionMap[f]); - + if (pathWriter) state->pathOS = pathWriter->open(); if (symPathWriter) |