Go to the documentation of this file.
69 return std::string(ipasir_signature());
78 else if(!it->is_false())
80 "reject out of bound variables");
88 ipasir_add(
solver, it->dimacs());
111 "SAT checker inconsistent: instance is UNSATISFIABLE" <<
eom;
116 bvt::const_iterator it = std::find_if(
assumptions.begin(),
123 "got FALSE as assumption: instance is UNSATISFIABLE" <<
eom;
129 ipasir_assume(
solver, it->dimacs());
132 int solver_state=ipasir_solve(
solver);
136 "SAT checker: instance is SATISFIABLE" <<
eom;
140 else if(20==solver_state)
143 "SAT checker: instance is UNSATISFIABLE" <<
eom;
148 "SAT checker: solving returned without solution" <<
eom;
150 "solving inside IPASIR SAT solver has been interrupted");
162 INVARIANT(
false,
"method not supported");
186 bvt::const_iterator it = std::find_if(bv.begin(), bv.end(),
is_true);
187 const bool has_true = it != bv.end();
virtual bool is_in_conflict(literalt a) const override
Returns true if an assumption is in the final conflict.
std::vector< literalt > bvt
mstreamt & status() const
Glucose::SimpSolver * solver
virtual const std::string solver_text() override
This method returns the description produced by the linked SAT solver.
virtual tvt l_get(literalt a) const override final
This method returns the truth value for a literal of the current SAT model.
#define forall_literals(it, bv)
virtual void set_assumptions(const bvt &_assumptions) override
bool is_false(const literalt &l)
virtual void lcnf(const bvt &bv) override final
virtual void set_assignment(literalt a, bool value) override
mstreamt & result() const
virtual ~satcheck_ipasirt() override
int solver(std::istream &in)
virtual size_t no_variables() const override
bool is_true(const literalt &l)
virtual resultt prop_solve() override
Thrown when an unexpected error occurs during the analysis (e.g., when the SAT solver returns an erro...