From ae0fd16356a7e421e10ffc4e8701583f012b4516 Mon Sep 17 00:00:00 2001 From: Daniel Schemmel Date: Fri, 24 Mar 2023 01:13:27 +0000 Subject: use unique_ptr in AssignmentValidatingSolver --- lib/Solver/AssignmentValidatingSolver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Solver') 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 #include namespace klee { class AssignmentValidatingSolver : public SolverImpl { private: - Solver *solver; + std::unique_ptr 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); -- cgit 1.4.1