diff options
author | MartinNowack <martin.nowack@gmail.com> | 2014-05-30 00:09:00 +0200 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2014-05-30 00:09:00 +0200 |
commit | 15470d2661900bae90ac457dd60694a4f4f7ec3c (patch) | |
tree | a3b45da7700f765408b1236eeefd4d1ec01e22bb /lib/Solver/QueryLoggingSolver.h | |
parent | c2dec441f3f89916962175f0307b5c33473fa616 (diff) | |
parent | eaac527a2821c41aa88c8767fd0305f9d610fb23 (diff) | |
download | klee-15470d2661900bae90ac457dd60694a4f4f7ec3c.tar.gz |
Merge pull request #117 from MartinNowack/llvm_raw_ostream
Refactor std::ostreams to llvm::raw_ostream and minor cleanups
Diffstat (limited to 'lib/Solver/QueryLoggingSolver.h')
-rw-r--r-- | lib/Solver/QueryLoggingSolver.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Solver/QueryLoggingSolver.h b/lib/Solver/QueryLoggingSolver.h index 2c7d80e8..ad1722ca 100644 --- a/lib/Solver/QueryLoggingSolver.h +++ b/lib/Solver/QueryLoggingSolver.h @@ -12,6 +12,7 @@ #include "klee/Solver.h" #include "klee/SolverImpl.h" +#include "llvm/Support/raw_ostream.h" #include <fstream> #include <sstream> @@ -25,9 +26,12 @@ class QueryLoggingSolver : public SolverImpl { protected: Solver *solver; - std::ofstream os; - std::ostringstream logBuffer; // buffer to store logs before flushing to - // file + std::string ErrorInfo; + llvm::raw_fd_ostream os; + // @brief Buffer used by logBuffer + std::string BufferString; + // @brief buffer to store logs before flushing to file + llvm::raw_string_ostream logBuffer; unsigned queryCount; int minQueryTimeToLog; // we log to file only those queries // which take longer than the specified time (ms); |