Go to the documentation of this file.
69 return std::string(ipasir_signature());
74 for(
const auto &literal : bv)
78 else if(!literal.is_false())
82 "reject out of bound variables");
86 for(
const auto &literal : bv)
88 if(!literal.is_false())
91 ipasir_add(
solver, literal.dimacs());
103 static size_t cnf_clause_index = 0;
124 bvt::const_iterator it =
130 log.
status() <<
"got FALSE as assumption: instance is UNSATISFIABLE"
137 if(!literal.is_false())
138 ipasir_assume(
solver, literal.dimacs());
142 int solver_state = ipasir_solve(
solver);
143 if(10 == solver_state)
149 else if(20 == solver_state)
155 log.
status() <<
"SAT checker: solving returned without solution"
158 "solving inside IPASIR SAT solver has been interrupted");
169 INVARIANT(
false,
"method not supported");
193 bvt::const_iterator it = std::find_if(bv.begin(), bv.end(),
is_true);
194 const bool has_true = it != bv.end();
bool process_clause(const bvt &bv, bvt &dest) const
filter 'true' from clause, eliminate duplicates, recognise trivially satisfied clauses
void set_assignment(literalt a, bool value) override
std::vector< literalt > bvt
mstreamt & status() const
Glucose::SimpSolver * solver
satcheck_ipasirt(message_handlert &message_handler)
void with_solver_hardness(std::function< void(solver_hardnesst &)> handler) override
const std::string solver_text() override
This method returns the description produced by the linked SAT solver.
bool is_false(const literalt &l)
void register_clause(const bvt &bv, const bvt &cnf, const size_t cnf_clause_index, bool register_cnf)
Called e.g.
bool is_in_conflict(literalt a) const override
Returns true if an assumption is in the final conflict.
tvt l_get(literalt a) const override final
This method returns the truth value for a literal of the current SAT model.
void lcnf(const bvt &bv) override final
virtual ~satcheck_ipasirt() override
A structure that facilitates collecting the complexity statistics from a decision procedure.
int solver(std::istream &in)
void set_assumptions(const bvt &_assumptions) override
#define INVARIANT(CONDITION, REASON)
This macro uses the wrapper function 'invariant_violated_string'.
virtual size_t no_variables() const override
bool is_true(const literalt &l)
resultt do_prop_solve() override
mstreamt & statistics() const
Thrown when an unexpected error occurs during the analysis (e.g., when the SAT solver returns an erro...