summaryrefslogtreecommitdiff
path: root/src/prop/minisat
diff options
context:
space:
mode:
authorDejan Jovanović <dejan.jovanovic@gmail.com>2012-03-26 19:42:25 +0000
committerDejan Jovanović <dejan.jovanovic@gmail.com>2012-03-26 19:42:25 +0000
commit6fdc62f34bb1d04b84dfd628ec16335b8f02385e (patch)
tree44755057990ad99f6f47904a0201d33c9be18c9c /src/prop/minisat
parent1ed3b1803bd0a25c56a62d290cd5dcb64c5085ce (diff)
Global registry of SAT solvers, where they are registered at compile time. The available SAT solvers can be seen with the --show-sat-solvers option.
Diffstat (limited to 'src/prop/minisat')
-rw-r--r--src/prop/minisat/minisat.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/prop/minisat/minisat.h b/src/prop/minisat/minisat.h
index 549c0b679..66aca717d 100644
--- a/src/prop/minisat/minisat.h
+++ b/src/prop/minisat/minisat.h
@@ -19,6 +19,7 @@
#pragma once
#include "prop/sat_solver.h"
+#include "prop/sat_solver_registry.h"
#include "prop/minisat/simp/SimpSolver.h"
namespace CVC4 {
@@ -36,11 +37,11 @@ class DPLLMinisatSatSolver : public DPLLSatSolverInterface {
/** Context we will be using to synchronzie the sat solver */
context::Context* d_context;
- DPLLMinisatSatSolver ();
-
public:
+ DPLLMinisatSatSolver ();
~DPLLMinisatSatSolver();
+
static SatVariable toSatVariable(Minisat::Var var);
static Minisat::Lit toMinisatLit(SatLiteral lit);
static SatLiteral toSatLiteral(Minisat::Lit lit);
@@ -93,9 +94,10 @@ public:
};
Statistics d_statistics;
- friend class SatSolverFactory;
};
+template class SatSolverConstructor<DPLLMinisatSatSolver>;
+
} // prop namespace
} // cvc4 namespace
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback