Go to the documentation of this file.
18 #include <cadical.hpp>
43 return std::string(
"CaDiCaL ") +
solver->version();
48 for(
const auto &lit : bv)
52 else if(!lit.is_false())
56 for(
const auto &lit : bv)
73 static size_t cnf_clause_index = 0;
98 log.
status() <<
"got FALSE as assumption: instance is UNSATISFIABLE"
118 log.
status() <<
"SAT checker: solving returned without solution"
121 "solving inside CaDiCaL SAT solver has been interrupted");
131 INVARIANT(
false,
"method not supported");
149 for(
const auto &assumption : bv)
151 if(!assumption.is_true())
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
void with_solver_hardness(std::function< void(solver_hardnesst &)> handler) override
std::vector< literalt > bvt
mstreamt & status() const
bool is_in_conflict(literalt a) const override
Returns true if an assumption is in the final conflict.
void set_assumptions(const bvt &_assumptions) override
satcheck_cadicalt(message_handlert &message_handler)
void register_clause(const bvt &bv, const bvt &cnf, const size_t cnf_clause_index, bool register_cnf)
Called e.g.
virtual ~satcheck_cadicalt()
resultt do_prop_solve() override
void lcnf(const bvt &bv) override
tvt l_get(literalt a) const override
A structure that facilitates collecting the complexity statistics from a decision procedure.
int solver(std::istream &in)
#define INVARIANT(CONDITION, REASON)
This macro uses the wrapper function 'invariant_violated_string'.
virtual size_t no_variables() const override
const std::string solver_text() override
mstreamt & statistics() const
Thrown when an unexpected error occurs during the analysis (e.g., when the SAT solver returns an erro...