3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-05 07:24:01 +00:00

Made MiniSat solver backend configurable in ezminisat.h

This commit is contained in:
Clifford Wolf 2014-02-22 01:29:02 +01:00
parent 8b508dc90b
commit 1ec01d8c63
2 changed files with 10 additions and 3 deletions

View file

@ -29,6 +29,7 @@
#include <cinttypes>
#include <minisat/core/Solver.h>
#include <minisat/simp/SimpSolver.h>
ezMiniSAT::ezMiniSAT() : minisatSolver(NULL)
{
@ -90,8 +91,10 @@ contradiction:
for (auto id : modelExpressions)
modelIdx.push_back(bind(id));
if (minisatSolver == NULL)
minisatSolver = new Minisat::Solver;
if (minisatSolver == NULL) {
minisatSolver = new EZMINISAT_SOLVER;
minisatSolver->verbosity = EZMINISAT_VERBOSITY;
}
std::vector<std::vector<int>> cnf;
consumeCnf(cnf);