cprover
cvc_propt Class Reference

#include <cvc_prop.h>

Inheritance diagram for cvc_propt:
[legend]
Collaboration diagram for cvc_propt:
[legend]

Public Member Functions

 cvc_propt (std::ostream &_out)
 
virtual ~cvc_propt ()
 
virtual void land (literalt a, literalt b, literalt o)
 
virtual void lor (literalt a, literalt b, literalt o)
 
virtual void lxor (literalt a, literalt b, literalt o)
 
virtual void lnand (literalt a, literalt b, literalt o)
 
virtual void lnor (literalt a, literalt b, literalt o)
 
virtual void lequal (literalt a, literalt b, literalt o)
 
virtual void limplies (literalt a, literalt b, literalt o)
 
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 propt::resultt prop_solve ()
 
virtual void clear ()
 
void reset_assignment ()
 
- Public Member Functions inherited from propt
 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)
 
- Public Member Functions inherited from messaget
virtual void set_message_handler (message_handlert &_message_handler)
 
message_handlertget_message_handler ()
 
 messaget ()
 
 messaget (const messaget &other)
 
 messaget (message_handlert &_message_handler)
 
virtual ~messaget ()
 
mstreamtget_mstream (unsigned message_level)
 
mstreamterror ()
 
mstreamtwarning ()
 
mstreamtresult ()
 
mstreamtstatus ()
 
mstreamtstatistics ()
 
mstreamtprogress ()
 
mstreamtdebug ()
 
- Public Member Functions inherited from prop_assignmentt
virtual ~prop_assignmentt ()
 

Protected Member Functions

std::string cvc_literal (literalt l)
 
literalt def_cvc_literal ()
 

Protected Attributes

unsigned _no_variables
 
std::ostream & out
 
std::vector< tvtassignment
 
- Protected Attributes inherited from propt
bvt lcnf_bv
 
- Protected Attributes inherited from messaget
message_handlertmessage_handler
 
mstreamt mstream
 

Friends

class cvc_convt
 
class cvc_dect
 

Additional Inherited Members

- Public Types inherited from propt
enum  resultt { resultt::P_SATISFIABLE, resultt::P_UNSATISFIABLE, resultt::P_ERROR }
 
- Public Types inherited from messaget
enum  message_levelt {
  M_ERROR =1, M_WARNING =2, M_RESULT =4, M_STATUS =6,
  M_STATISTICS =8, M_PROGRESS =9, M_DEBUG =10
}
 
- Static Public Member Functions inherited from messaget
static mstreamteom (mstreamt &m)
 
static mstreamtendl (mstreamt &m)
 

Detailed Description

Definition at line 19 of file cvc_prop.h.

Constructor & Destructor Documentation

◆ cvc_propt()

cvc_propt::cvc_propt ( std::ostream &  _out)
explicit

Definition at line 14 of file cvc_prop.cpp.

References _no_variables.

◆ ~cvc_propt()

cvc_propt::~cvc_propt ( )
virtual

Definition at line 19 of file cvc_prop.cpp.

Member Function Documentation

◆ clear()

virtual void cvc_propt::clear ( void  )
inlinevirtual

Definition at line 67 of file cvc_prop.h.

References assignment.

◆ cvc_literal()

std::string cvc_propt::cvc_literal ( literalt  l)
protected

Definition at line 290 of file cvc_prop.cpp.

References const_literal(), literalt::sign(), and literalt::var_no().

Referenced by land(), lcnf(), lequal(), limplies(), lnand(), lnor(), lor(), lselect(), and lxor().

◆ def_cvc_literal()

literalt cvc_propt::def_cvc_literal ( )
protected

Definition at line 245 of file cvc_prop.cpp.

References _no_variables, out, and literalt::set().

Referenced by land(), lor(), lselect(), and lxor().

◆ l_get()

virtual tvt cvc_propt::l_get ( literalt  literal) const
inlinevirtual

Implements propt.

Definition at line 53 of file cvc_prop.h.

References assignment, r, literalt::sign(), tvt::TV_UNKNOWN, and literalt::var_no().

◆ land() [1/3]

void cvc_propt::land ( literalt  a,
literalt  b,
literalt  o 
)
virtual

Definition at line 23 of file cvc_prop.cpp.

References cvc_literal(), and out.

Referenced by lnand().

◆ land() [2/3]

literalt cvc_propt::land ( literalt  a,
literalt  b 
)
virtual

Implements propt.

Definition at line 132 of file cvc_prop.cpp.

References const_literal(), cvc_literal(), def_cvc_literal(), and out.

◆ land() [3/3]

literalt cvc_propt::land ( const bvt bv)
virtual

Implements propt.

Definition at line 79 of file cvc_prop.cpp.

References cvc_literal(), def_cvc_literal(), forall_literals, and out.

◆ lcnf()

void cvc_propt::lcnf ( const bvt bv)
virtual

Implements propt.

Definition at line 254 of file cvc_prop.cpp.

References _no_variables, cvc_literal(), and out.

◆ lequal() [1/2]

void cvc_propt::lequal ( literalt  a,
literalt  b,
literalt  o 
)
virtual

Definition at line 63 of file cvc_prop.cpp.

References cvc_literal(), and out.

◆ lequal() [2/2]

literalt cvc_propt::lequal ( literalt  a,
literalt  b 
)
virtual

Implements propt.

Definition at line 206 of file cvc_prop.cpp.

References lxor().

◆ limplies() [1/2]

void cvc_propt::limplies ( literalt  a,
literalt  b,
literalt  o 
)
virtual

Definition at line 71 of file cvc_prop.cpp.

References cvc_literal(), and out.

◆ limplies() [2/2]

literalt cvc_propt::limplies ( literalt  a,
literalt  b 
)
virtual

Implements propt.

Definition at line 211 of file cvc_prop.cpp.

References lor().

◆ lnand() [1/2]

void cvc_propt::lnand ( literalt  a,
literalt  b,
literalt  o 
)
virtual

Definition at line 47 of file cvc_prop.cpp.

References cvc_literal(), and out.

◆ lnand() [2/2]

literalt cvc_propt::lnand ( literalt  a,
literalt  b 
)
virtual

Implements propt.

Definition at line 196 of file cvc_prop.cpp.

References land().

◆ lnor() [1/2]

void cvc_propt::lnor ( literalt  a,
literalt  b,
literalt  o 
)
virtual

Definition at line 55 of file cvc_prop.cpp.

References cvc_literal(), and out.

◆ lnor() [2/2]

literalt cvc_propt::lnor ( literalt  a,
literalt  b 
)
virtual

Implements propt.

Definition at line 201 of file cvc_prop.cpp.

References lor().

◆ lor() [1/3]

void cvc_propt::lor ( literalt  a,
literalt  b,
literalt  o 
)
virtual

Definition at line 31 of file cvc_prop.cpp.

References cvc_literal(), and out.

Referenced by limplies(), and lnor().

◆ lor() [2/3]

literalt cvc_propt::lor ( literalt  a,
literalt  b 
)
virtual

Implements propt.

Definition at line 154 of file cvc_prop.cpp.

References const_literal(), cvc_literal(), def_cvc_literal(), and out.

◆ lor() [3/3]

literalt cvc_propt::lor ( const bvt bv)
virtual

Implements propt.

Definition at line 97 of file cvc_prop.cpp.

References cvc_literal(), def_cvc_literal(), forall_literals, and out.

◆ lselect()

literalt cvc_propt::lselect ( literalt  a,
literalt  b,
literalt  c 
)
virtual

Implements propt.

Definition at line 216 of file cvc_prop.cpp.

References const_literal(), cvc_literal(), def_cvc_literal(), and out.

◆ lxor() [1/3]

void cvc_propt::lxor ( literalt  a,
literalt  b,
literalt  o 
)
virtual

Definition at line 39 of file cvc_prop.cpp.

References cvc_literal(), and out.

Referenced by lequal(), and lxor().

◆ lxor() [2/3]

literalt cvc_propt::lxor ( const bvt bv)
virtual

Implements propt.

Definition at line 115 of file cvc_prop.cpp.

References const_literal(), forall_literals, and lxor().

◆ lxor() [3/3]

literalt cvc_propt::lxor ( literalt  a,
literalt  b 
)
virtual

Implements propt.

Definition at line 176 of file cvc_prop.cpp.

References const_literal(), cvc_literal(), def_cvc_literal(), and out.

◆ new_variable()

literalt cvc_propt::new_variable ( void  )
virtual

Implements propt.

Definition at line 236 of file cvc_prop.cpp.

References _no_variables, out, and literalt::set().

◆ no_variables()

virtual size_t cvc_propt::no_variables ( ) const
inlinevirtual

Implements propt.

Definition at line 45 of file cvc_prop.h.

References _no_variables.

Referenced by reset_assignment().

◆ prop_solve()

propt::resultt cvc_propt::prop_solve ( )
virtual

Implements propt.

Definition at line 303 of file cvc_prop.cpp.

References out.

◆ reset_assignment()

void cvc_propt::reset_assignment ( )
inline

Definition at line 72 of file cvc_prop.h.

References assignment, no_variables(), and tvt::TV_UNKNOWN.

◆ set_no_variables()

virtual void cvc_propt::set_no_variables ( size_t  no)
inlinevirtual

Definition at line 46 of file cvc_prop.h.

◆ solver_text()

virtual const std::string cvc_propt::solver_text ( )
inlinevirtual

Implements propt.

Definition at line 50 of file cvc_prop.h.

Friends And Related Function Documentation

◆ cvc_convt

friend class cvc_convt
friend

Definition at line 64 of file cvc_prop.h.

◆ cvc_dect

friend class cvc_dect
friend

Definition at line 65 of file cvc_prop.h.

Member Data Documentation

◆ _no_variables

unsigned cvc_propt::_no_variables
protected

Definition at line 79 of file cvc_prop.h.

Referenced by cvc_propt(), def_cvc_literal(), lcnf(), new_variable(), and no_variables().

◆ assignment

std::vector<tvt> cvc_propt::assignment
protected

Definition at line 85 of file cvc_prop.h.

Referenced by clear(), l_get(), and reset_assignment().

◆ out

std::ostream& cvc_propt::out
protected

The documentation for this class was generated from the following files: