Go to the documentation of this file.
64 return std::string(ipasir_signature());
69 for(
const auto &literal : bv)
73 else if(!literal.is_false())
77 "reject out of bound variables");
81 for(
const auto &literal : bv)
83 if(!literal.is_false())
86 ipasir_add(
solver, literal.dimacs());
99 static size_t cnf_clause_index = 0;
107 bv, cnf, cnf_clause_index, !clause_removed);
121 bvt::const_iterator it =
127 log.
status() <<
"got FALSE as assumption: instance is UNSATISFIABLE"
134 if(!literal.is_false())
135 ipasir_assume(
solver, literal.dimacs());
139 int solver_state = ipasir_solve(
solver);
140 if(10 == solver_state)
146 else if(20 == solver_state)
152 log.
status() <<
"SAT checker: solving returned without solution"
155 "solving inside IPASIR SAT solver has been interrupted");
166 INVARIANT(
false,
"method not supported");
190 bvt::const_iterator it = std::find_if(bv.begin(), bv.end(),
is_true);
191 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
std::unique_ptr< clause_hardness_collectort > solver_hardness
void set_assignment(literalt a, bool value) override
std::vector< literalt > bvt
mstreamt & status() const
satcheck_ipasirt(message_handlert &message_handler)
const std::string solver_text() override
This method returns the description produced by the linked SAT solver.
std::unique_ptr< Glucose::SimpSolver > solver
bool is_false(const literalt &l)
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
int solver(std::istream &in)
void set_assumptions(const bvt &_assumptions) override
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...