diff options
-rw-r--r-- | lib/Solver/AssignmentValidatingSolver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Solver/AssignmentValidatingSolver.cpp b/lib/Solver/AssignmentValidatingSolver.cpp index 54d6ec8c..f18f43a8 100644 --- a/lib/Solver/AssignmentValidatingSolver.cpp +++ b/lib/Solver/AssignmentValidatingSolver.cpp @@ -12,18 +12,18 @@ #include "klee/Solver/Solver.h" #include "klee/Solver/SolverImpl.h" +#include <memory> #include <vector> namespace klee { class AssignmentValidatingSolver : public SolverImpl { private: - Solver *solver; + std::unique_ptr<Solver> solver; void dumpAssignmentQuery(const Query &query, const Assignment &assignment); public: AssignmentValidatingSolver(Solver *_solver) : solver(_solver) {} - ~AssignmentValidatingSolver() { delete solver; } bool computeValidity(const Query &, Solver::Validity &result); bool computeTruth(const Query &, bool &isValid); |