diff options
| author | Daniel Schemmel <daniel@schemmel.net> | 2023-03-24 15:05:43 +0000 |
|---|---|---|
| committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2023-04-21 13:07:31 +0100 |
| commit | ac0fa15ab0679fe1b5067b07647b0701ae3bc347 (patch) | |
| tree | f2294eb5f0795ee9ce0f92d527242b7b7a507e79 /lib/Solver/DummySolver.cpp | |
| parent | e9d77be6c688836d68a2be5f3f0a02e63f392bb8 (diff) | |
| download | klee-ac0fa15ab0679fe1b5067b07647b0701ae3bc347.tar.gz | |
use unique_ptr all throughout the solver chain
Diffstat (limited to 'lib/Solver/DummySolver.cpp')
| -rw-r--r-- | lib/Solver/DummySolver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Solver/DummySolver.cpp b/lib/Solver/DummySolver.cpp index a845f901..1cf88d64 100644 --- a/lib/Solver/DummySolver.cpp +++ b/lib/Solver/DummySolver.cpp @@ -11,6 +11,8 @@ #include "klee/Solver/SolverImpl.h" #include "klee/Solver/SolverStats.h" +#include <memory> + namespace klee { class DummySolverImpl : public SolverImpl { @@ -59,5 +61,7 @@ SolverImpl::SolverRunStatus DummySolverImpl::getOperationStatusCode() { return SOLVER_RUN_STATUS_FAILURE; } -Solver *createDummySolver() { return new Solver(new DummySolverImpl()); } +std::unique_ptr<Solver> createDummySolver() { + return std::make_unique<Solver>(std::make_unique<DummySolverImpl>()); +} } |
