15 #include "booleforce.h"
20 booleforce_set_trace(
false);
25 booleforce_set_trace(
true);
46 int r=booleforce_deref(v);
63 return std::string(
"Booleforce version ")+booleforce_version();
73 for(
unsigned j=0; j<tmp.size(); j++)
74 booleforce_add(tmp[j].dimacs());
87 int result=booleforce_sat();
94 case BOOLEFORCE_UNSATISFIABLE:
95 msg=
"SAT checker: instance is UNSATISFIABLE";
98 case BOOLEFORCE_SATISFIABLE:
99 msg=
"SAT checker: instance is SATISFIABLE";
103 msg=
"SAT checker failed: unknown result";
110 if(result==BOOLEFORCE_UNSATISFIABLE)
113 return P_UNSATISFIABLE;
116 if(result==BOOLEFORCE_SATISFIABLE)
119 return P_SATISFIABLE;
129 return booleforce_var_in_core(l.
var_no());
bool process_clause(const bvt &bv, bvt &dest) const
filter 'true' from clause, eliminate duplicates, recognise trivially satisfied clauses
virtual size_t no_variables() const override
mstreamt & status() const
virtual ~satcheck_booleforce_baset()
void lcnf(const bvt &bv) override
std::string solver_text() const override
resultt do_prop_solve(const bvt &assumptions) override
tvt l_get(literalt a) const override
bool is_in_core(literalt l) const
satcheck_booleforce_coret()
std::vector< literalt > bvt
#define CHECK_RETURN(CONDITION)
#define PRECONDITION(CONDITION)