diff options
Diffstat (limited to 'lib/Solver')
-rw-r--r-- | lib/Solver/CachingSolver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Solver/CachingSolver.cpp b/lib/Solver/CachingSolver.cpp index 4a4c8e28..5d85062d 100644 --- a/lib/Solver/CachingSolver.cpp +++ b/lib/Solver/CachingSolver.cpp @@ -16,6 +16,7 @@ #include "klee/Solver/SolverImpl.h" #include "klee/Solver/SolverStats.h" +#include <memory> #include <unordered_map> using namespace klee; @@ -62,12 +63,11 @@ private: CacheEntryHash> cache_map; - Solver *solver; + std::unique_ptr<Solver> solver; cache_map cache; public: CachingSolver(Solver *s) : solver(s) {} - ~CachingSolver() { cache.clear(); delete solver; } bool computeValidity(const Query&, Solver::Validity &result); bool computeTruth(const Query&, bool &isValid); |