diff options
author | MartinNowack <martin.nowack@gmail.com> | 2016-08-06 18:13:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-06 18:13:03 +0200 |
commit | 171c119b48f67171b9cba1091bc58cb61edddd5b (patch) | |
tree | fd4a85690488ae34cd0bfdd21a8f70dc30755fde /lib | |
parent | 0186c6fe949b4b8ec9580af3d6a367bd53db56ed (diff) | |
parent | 826c82b4c9d43af3a5a6ca01788061d00821b43a (diff) | |
download | klee-171c119b48f67171b9cba1091bc58cb61edddd5b.tar.gz |
Merge pull request #448 from andreamattavelli/fix_query_compression
Fix to #445
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Solver/QueryLoggingSolver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Solver/QueryLoggingSolver.cpp b/lib/Solver/QueryLoggingSolver.cpp index fb957b65..a858a7d7 100644 --- a/lib/Solver/QueryLoggingSolver.cpp +++ b/lib/Solver/QueryLoggingSolver.cpp @@ -39,16 +39,17 @@ QueryLoggingSolver::QueryLoggingSolver(Solver *_solver, std::string path, : solver(_solver), os(0), BufferString(""), logBuffer(BufferString), queryCount(0), minQueryTimeToLog(queryTimeToLog), startTime(0.0f), lastQueryTime(0.0f), queryCommentSign(commentSign) { +#ifdef HAVE_ZLIB_H if (!CreateCompressedQueryLog) { +#endif #if LLVM_VERSION_CODE >= LLVM_VERSION(3, 5) os = new llvm::raw_fd_ostream(path.c_str(), ErrorInfo, llvm::sys::fs::OpenFlags::F_Text); #else os = new llvm::raw_fd_ostream(path.c_str(), ErrorInfo); #endif - } #ifdef HAVE_ZLIB_H - else { + } else { os = new compressed_fd_ostream((path + ".gz").c_str(), ErrorInfo); } if (ErrorInfo != "") { |