diff options
Diffstat (limited to 'src/prop/sat_solver_factory.cpp')
-rw-r--r-- | src/prop/sat_solver_factory.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/prop/sat_solver_factory.cpp b/src/prop/sat_solver_factory.cpp index 460ab3ece..8f18a6055 100644 --- a/src/prop/sat_solver_factory.cpp +++ b/src/prop/sat_solver_factory.cpp @@ -19,6 +19,7 @@ #include "prop/bvminisat/bvminisat.h" #include "prop/cadical.h" #include "prop/cryptominisat.h" +#include "prop/kissat.h" #include "prop/minisat/minisat.h" namespace CVC4 { @@ -58,5 +59,17 @@ SatSolver* SatSolverFactory::createCadical(StatisticsRegistry* registry, #endif } +SatSolver* SatSolverFactory::createKissat(StatisticsRegistry* registry, + const std::string& name) +{ +#ifdef CVC4_USE_KISSAT + KissatSolver* res = new KissatSolver(registry, name); + res->init(); + return res; +#else + Unreachable() << "CVC4 was not compiled with Kissat support."; +#endif +} + } // namespace prop } // namespace CVC4 |