cprover
|
#include <cnf_clause_list.h>
Public Types | |
typedef std::list< bvt > | clausest |
![]() | |
enum | resultt { resultt::P_SATISFIABLE, resultt::P_UNSATISFIABLE, resultt::P_ERROR } |
Public Member Functions | |
cnf_clause_listt () | |
virtual | ~cnf_clause_listt () |
virtual void | lcnf (const bvt &bv) |
virtual const std::string | solver_text () |
virtual tvt | l_get (literalt literal) const |
virtual resultt | prop_solve () |
virtual size_t | no_clauses () const |
clausest & | get_clauses () |
void | copy_to (cnft &cnf) const |
size_t | hash () const |
![]() | |
cnft () | |
virtual | ~cnft () |
virtual literalt | land (literalt a, literalt b) override |
virtual literalt | lor (literalt a, literalt b) override |
virtual literalt | land (const bvt &bv) override |
Tseitin encoding of conjunction between multiple literals. More... | |
virtual literalt | lor (const bvt &bv) override |
Tseitin encoding of disjunction between multiple literals. More... | |
virtual literalt | lxor (const bvt &bv) override |
Tseitin encoding of XOR between multiple literals. More... | |
virtual literalt | lxor (literalt a, literalt b) override |
virtual literalt | lnand (literalt a, literalt b) override |
virtual literalt | lnor (literalt a, literalt b) override |
virtual literalt | lequal (literalt a, literalt b) override |
virtual literalt | limplies (literalt a, literalt b) override |
virtual literalt | lselect (literalt a, literalt b, literalt c) override |
virtual literalt | new_variable () override |
Generate a new variable and return it as a literal. More... | |
virtual size_t | no_variables () const override |
virtual void | set_no_variables (size_t no) |
void | gate_and (literalt a, literalt b, literalt o) |
Tseitin encoding of conjunction of two literals. More... | |
void | gate_or (literalt a, literalt b, literalt o) |
Tseitin encoding of disjunction of two literals. More... | |
void | gate_xor (literalt a, literalt b, literalt o) |
Tseitin encoding of XOR of two literals. More... | |
void | gate_nand (literalt a, literalt b, literalt o) |
Tseitin encoding of NAND of two literals. More... | |
void | gate_nor (literalt a, literalt b, literalt o) |
Tseitin encoding of NOR of two literals. More... | |
void | gate_equal (literalt a, literalt b, literalt o) |
Tseitin encoding of equality between two literals. More... | |
void | gate_implies (literalt a, literalt b, literalt o) |
Tseitin encoding of implication between two literals. More... | |
![]() | |
propt () | |
virtual | ~propt () |
virtual void | set_equal (literalt a, literalt b) |
asserts a==b in the propositional formula More... | |
virtual void | l_set_to (literalt a, bool value) |
void | l_set_to_true (literalt a) |
void | l_set_to_false (literalt a) |
void | lcnf (literalt l0, literalt l1) |
void | lcnf (literalt l0, literalt l1, literalt l2) |
void | lcnf (literalt l0, literalt l1, literalt l2, literalt l3) |
virtual bool | has_set_to () const |
virtual bool | cnf_handled_well () const |
virtual void | set_assumptions (const bvt &_assumptions) |
virtual bool | has_set_assumptions () const |
virtual void | set_variable_name (literalt a, const std::string &name) |
bvt | new_variables (std::size_t width) |
generates a bitvector of given width with new variables More... | |
virtual void | set_assignment (literalt a, bool value) |
virtual void | copy_assignment_from (const propt &prop) |
virtual bool | is_in_conflict (literalt l) const |
virtual bool | has_is_in_conflict () const |
virtual void | set_frozen (literalt a) |
![]() | |
virtual | ~prop_assignmentt () |
Static Public Member Functions | |
static size_t | hash_clause (const bvt &bv) |
![]() | |
static bvt | eliminate_duplicates (const bvt &) |
eliminate duplicates from given vector of literals More... | |
Protected Attributes | |
clausest | clauses |
![]() | |
size_t | _no_variables |
![]() | |
bvt | lcnf_bv |
Additional Inherited Members | |
![]() | |
bool | process_clause (const bvt &bv, bvt &dest) |
filter 'true' from clause, eliminate duplicates, recognise trivially satisfied clauses More... | |
![]() | |
static bool | is_all (const bvt &bv, literalt l) |
Definition at line 23 of file cnf_clause_list.h.
typedef std::list<bvt> cnf_clause_listt::clausest |
Definition at line 43 of file cnf_clause_list.h.
|
inline |
Definition at line 26 of file cnf_clause_list.h.
|
inlinevirtual |
Definition at line 27 of file cnf_clause_list.h.
References lcnf().
|
inline |
Definition at line 47 of file cnf_clause_list.h.
References cnft::_no_variables, clauses, propt::lcnf(), and cnft::set_no_variables().
|
inline |
Definition at line 45 of file cnf_clause_list.h.
References clauses.
|
inline |
Definition at line 66 of file cnf_clause_list.h.
References clauses, hash_clause(), and messaget::result().
Referenced by qdimacs_cnft::hash().
|
inlinestatic |
Definition at line 57 of file cnf_clause_list.h.
References messaget::result().
Referenced by hash().
Implements propt.
Reimplemented in cnf_clause_list_assignmentt, qbf_bdd_coret, pbs_dimacs_cnft, qbf_bdd_certificatet, qbf_qube_coret, qbf_squolem_coret, qbf_squolemt, satcheck_zchaff_baset, satcheck_zcoret, satcheck_limmatt, qbf_quantort, qbf_qubet, qbf_skizzot, and qdimacs_coret.
Definition at line 34 of file cnf_clause_list.h.
References tvt::unknown().
|
virtual |
Implements propt.
Reimplemented in qbf_bdd_coret, qbf_squolem_coret, and qbf_squolemt.
Definition at line 17 of file cnf_clause_list.cpp.
References clauses, and cnft::process_clause().
Referenced by qdimacs_cnft::copy_to(), dimacs_cnf_dumpt::solver_text(), and ~cnf_clause_listt().
|
inlinevirtual |
Implements cnft.
Reimplemented in qbf_squolem_coret, and qbf_squolemt.
Definition at line 41 of file cnf_clause_list.h.
References clauses.
Referenced by qbf_quantort::prop_solve(), qbf_qubet::prop_solve(), qbf_skizzot::prop_solve(), qbf_skizzo_coret::prop_solve(), satcheck_zcoret::prop_solve(), and qbf_qube_coret::prop_solve().
|
inlinevirtual |
Implements propt.
Reimplemented in qbf_bdd_coret, pbs_dimacs_cnft, qbf_squolemt, qbf_squolem_coret, qbf_qube_coret, satcheck_zchaff_baset, satcheck_zcoret, qbf_skizzo_coret, satcheck_limmatt, qbf_quantort, qbf_qubet, and qbf_skizzot.
Definition at line 39 of file cnf_clause_list.h.
References propt::P_ERROR.
|
inlinevirtual |
Implements propt.
Reimplemented in qbf_bdd_coret, pbs_dimacs_cnft, qbf_squolemt, qbf_squolem_coret, qdimacs_cnft, qbf_qube_coret, dimacs_cnft, satcheck_zchaff_baset, satcheck_zcoret, qbf_skizzo_coret, satcheck_limmatt, qbf_quantort, qbf_qubet, and qbf_skizzot.
Definition at line 31 of file cnf_clause_list.h.
|
protected |
Definition at line 76 of file cnf_clause_list.h.
Referenced by satcheck_limmatt::copy_cnf(), satcheck_zchaff_baset::copy_cnf(), copy_to(), qdimacs_cnft::copy_to(), get_clauses(), hash(), lcnf(), no_clauses(), qdimacs_cnft::operator==(), pbs_dimacs_cnft::prop_solve(), and qbf_squolem_coret::setup().