diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-05-15 21:22:31 +0100 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2018-05-22 11:08:24 +0100 |
commit | cf33f833c9c8dd28b44a3177ef0b759e0f46cb86 (patch) | |
tree | 58aa058d69300b08de565061a43d4e4d349fb8a6 /lib/Core/Executor.cpp | |
parent | 7e17fe3191fb40360c88d28f1491aae203f0aa03 (diff) | |
download | klee-cf33f833c9c8dd28b44a3177ef0b759e0f46cb86.tar.gz |
Simplified printFileLine by using std::to_string, and removed unneeded version that takes an argument a stream
Diffstat (limited to 'lib/Core/Executor.cpp')
-rw-r--r-- | lib/Core/Executor.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 308b4456..03ac1331 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -1153,9 +1153,7 @@ void Executor::printDebugInstructions(ExecutionState &state) { if (!DebugPrintInstructions.isSet(STDERR_COMPACT) && !DebugPrintInstructions.isSet(FILE_COMPACT)) { - (*stream) << " "; - state.pc->printFileLine(*stream); - (*stream) << ":"; + (*stream) << " " << state.pc->printFileLine() << ":"; } (*stream) << state.pc->info->assemblyLine; @@ -3080,10 +3078,9 @@ void Executor::callExternalFunction(ExecutionState &state, for (unsigned i=0; i<arguments.size(); i++) { os << arguments[i]; if (i != arguments.size()-1) - os << ", "; + os << ", "; } - os << ") at "; - state.pc->printFileLine(os); + os << ") at " << state.pc->printFileLine(); if (AllExternalWarnings) klee_warning("%s", os.str().c_str()); |