cprover
|
#include <satcheck_limmat.h>
Public Member Functions | |
satcheck_limmatt () | |
virtual | ~satcheck_limmatt () |
virtual const std::string | solver_text () |
virtual resultt | prop_solve () |
virtual tvt | l_get (literalt a) const |
void | copy_cnf () |
![]() | |
dimacs_cnft () | |
virtual | ~dimacs_cnft () |
virtual void | write_dimacs_cnf (std::ostream &out) |
![]() | |
cnf_clause_listt () | |
virtual | ~cnf_clause_listt () |
virtual void | lcnf (const bvt &bv) |
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 () |
Protected Attributes | |
struct Limmat * | solver |
std::vector< unsigned char > | assignment |
![]() | |
bool | break_lines |
![]() | |
clausest | clauses |
![]() | |
size_t | _no_variables |
![]() | |
bvt | lcnf_bv |
Additional Inherited Members | |
![]() | |
typedef std::list< bvt > | clausest |
![]() | |
enum | resultt { resultt::P_SATISFIABLE, resultt::P_UNSATISFIABLE, resultt::P_ERROR } |
![]() | |
static size_t | hash_clause (const bvt &bv) |
![]() | |
static bvt | eliminate_duplicates (const bvt &) |
eliminate duplicates from given vector of literals More... | |
![]() | |
void | write_problem_line (std::ostream &out) |
void | write_clauses (std::ostream &out) |
![]() | |
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 16 of file satcheck_limmat.h.
satcheck_limmatt::satcheck_limmatt | ( | ) |
Definition at line 18 of file satcheck_limmat.cpp.
References solver.
|
virtual |
Definition at line 23 of file satcheck_limmat.cpp.
References solver.
void satcheck_limmatt::copy_cnf | ( | ) |
Definition at line 59 of file satcheck_limmat.cpp.
References cnf_clause_listt::clauses, and solver.
Referenced by prop_solve().
Reimplemented from cnf_clause_listt.
Definition at line 29 of file satcheck_limmat.cpp.
References assignment, literalt::is_false(), literalt::is_true(), messaget::result(), literalt::sign(), tvt::TV_UNKNOWN, and literalt::var_no().
|
virtual |
Reimplemented from cnf_clause_listt.
Definition at line 80 of file satcheck_limmat.cpp.
References assignment, copy_cnf(), messaget::eom(), cnft::no_variables(), solver, and messaget::status().
|
virtual |
Reimplemented from dimacs_cnft.
Definition at line 54 of file satcheck_limmat.cpp.
|
protected |
Definition at line 30 of file satcheck_limmat.h.
Referenced by l_get(), and prop_solve().
|
protected |
Definition at line 29 of file satcheck_limmat.h.
Referenced by copy_cnf(), prop_solve(), satcheck_limmatt(), and ~satcheck_limmatt().