cprover
|
#include <smt1_prop.h>
Public Member Functions | |
smt1_propt (const std::string &_benchmark, const std::string &_source, const std::string &_logic, std::ostream &_out) | |
virtual | ~smt1_propt () |
virtual literalt | land (literalt a, literalt b) |
virtual literalt | lor (literalt a, literalt b) |
virtual literalt | land (const bvt &bv) |
virtual literalt | lor (const bvt &bv) |
virtual literalt | lxor (const bvt &bv) |
virtual literalt | lxor (literalt a, literalt b) |
virtual literalt | lnand (literalt a, literalt b) |
virtual literalt | lnor (literalt a, literalt b) |
virtual literalt | lequal (literalt a, literalt b) |
virtual literalt | limplies (literalt a, literalt b) |
virtual literalt | lselect (literalt a, literalt b, literalt c) |
virtual literalt | new_variable () |
virtual size_t | no_variables () const |
virtual void | set_no_variables (size_t no) |
virtual void | lcnf (const bvt &bv) |
virtual const std::string | solver_text () |
virtual tvt | l_get (literalt literal) const |
virtual void | set_assignment (literalt a, bool value) |
virtual propt::resultt | prop_solve () |
virtual void | clear () |
virtual void | reset_assignment () |
void | finalize () |
![]() | |
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 | 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 Member Functions | |
std::string | smt1_literal (literalt l) |
literalt | def_smt1_literal () |
Protected Attributes | |
size_t | _no_variables |
std::ostream & | out |
std::vector< tvt > | assignment |
![]() | |
bvt | lcnf_bv |
Friends | |
class | smt1_convt |
class | smt1_dect |
Additional Inherited Members | |
![]() | |
enum | resultt { resultt::P_SATISFIABLE, resultt::P_UNSATISFIABLE, resultt::P_ERROR } |
Definition at line 19 of file smt1_prop.h.
smt1_propt::smt1_propt | ( | const std::string & | _benchmark, |
const std::string & | _source, | ||
const std::string & | _logic, | ||
std::ostream & | _out | ||
) |
Definition at line 15 of file smt1_prop.cpp.
References _no_variables, and out.
|
virtual |
Definition at line 28 of file smt1_prop.cpp.
|
inlinevirtual |
Definition at line 55 of file smt1_prop.h.
References assignment.
|
protected |
void smt1_propt::finalize | ( | ) |
Definition at line 32 of file smt1_prop.cpp.
References out.
Implements propt.
Definition at line 270 of file smt1_prop.cpp.
References assignment, literalt::is_false(), literalt::is_true(), r, literalt::sign(), tvt::TV_UNKNOWN, and literalt::var_no().
Implements propt.
Definition at line 95 of file smt1_prop.cpp.
References const_literal(), new_variable(), out, and smt1_literal().
Referenced by lnand().
Implements propt.
Definition at line 39 of file smt1_prop.cpp.
References forall_literals, new_variable(), out, and smt1_literal().
|
virtual |
Implements propt.
Definition at line 121 of file smt1_prop.cpp.
References const_literal(), new_variable(), out, and smt1_literal().
Referenced by limplies(), and lnor().
Implements propt.
Definition at line 56 of file smt1_prop.cpp.
References forall_literals, new_variable(), out, and smt1_literal().
Implements propt.
Definition at line 191 of file smt1_prop.cpp.
References const_literal(), new_variable(), out, and smt1_literal().
Implements propt.
Definition at line 73 of file smt1_prop.cpp.
References const_literal(), forall_literals, new_variable(), out, and smt1_literal().
Referenced by lequal().
Implements propt.
Definition at line 147 of file smt1_prop.cpp.
References const_literal(), new_variable(), out, and smt1_literal().
|
virtual |
Implements propt.
Definition at line 221 of file smt1_prop.cpp.
References _no_variables, out, literalt::set(), and smt1_literal().
|
inlinevirtual |
Implements propt.
Definition at line 42 of file smt1_prop.h.
References _no_variables.
Referenced by reset_assignment().
|
virtual |
Implements propt.
Definition at line 294 of file smt1_prop.cpp.
|
inlinevirtual |
Definition at line 60 of file smt1_prop.h.
References assignment, no_variables(), and tvt::TV_UNKNOWN.
|
virtual |
Reimplemented from propt.
Definition at line 284 of file smt1_prop.cpp.
References assignment, literalt::is_false(), literalt::is_true(), and literalt::var_no().
|
inlinevirtual |
Definition at line 43 of file smt1_prop.h.
|
protected |
Definition at line 255 of file smt1_prop.cpp.
References const_literal(), literalt::sign(), and literalt::var_no().
Referenced by land(), lcnf(), lor(), lselect(), lxor(), and new_variable().
|
inlinevirtual |
Implements propt.
Definition at line 47 of file smt1_prop.h.
|
friend |
Definition at line 66 of file smt1_prop.h.
|
friend |
Definition at line 67 of file smt1_prop.h.
|
protected |
Definition at line 72 of file smt1_prop.h.
Referenced by new_variable(), no_variables(), and smt1_propt().
|
protected |
Definition at line 78 of file smt1_prop.h.
Referenced by clear(), l_get(), reset_assignment(), and set_assignment().
|
protected |
Definition at line 73 of file smt1_prop.h.
Referenced by finalize(), land(), lcnf(), lor(), lselect(), lxor(), new_variable(), and smt1_propt().