3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-06 19:21:23 +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

@ -20,6 +20,9 @@
#ifndef EZMINISAT_H
#define EZMINISAT_H
#define EZMINISAT_SOLVER Minisat::Solver
#define EZMINISAT_VERBOSITY 0
#include "ezsat.h"
#include <time.h>
@ -28,12 +31,13 @@
// don't force ezSAT users to use minisat headers..
namespace Minisat {
class Solver;
class SimpSolver;
}
class ezMiniSAT : public ezSAT
{
private:
Minisat::Solver *minisatSolver;
EZMINISAT_SOLVER *minisatSolver;
std::vector<int> minisatVars;
bool foundContradiction;