cprover
smt1_propt Class Reference

#include <smt1_prop.h>

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

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 ()
 
- 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 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 smt1_literal (literalt l)
 
literalt def_smt1_literal ()
 

Protected Attributes

size_t _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 smt1_convt
 
class smt1_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 smt1_prop.h.

Constructor & Destructor Documentation

§ smt1_propt()

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.

§ ~smt1_propt()

smt1_propt::~smt1_propt ( )
virtual

Definition at line 28 of file smt1_prop.cpp.

Member Function Documentation

§ clear()

virtual void smt1_propt::clear ( void  )
inlinevirtual

Definition at line 55 of file smt1_prop.h.

References assignment.

§ def_smt1_literal()

literalt smt1_propt::def_smt1_literal ( )
protected

§ finalize()

void smt1_propt::finalize ( )

Definition at line 32 of file smt1_prop.cpp.

References out.

§ l_get()

tvt smt1_propt::l_get ( literalt  literal) const
virtual

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().

Referenced by solver_text().

§ land() [1/2]

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

Implements propt.

Definition at line 95 of file smt1_prop.cpp.

References const_literal(), new_variable(), out, and smt1_literal().

Referenced by lnand().

§ land() [2/2]

literalt smt1_propt::land ( const bvt bv)
virtual

Implements propt.

Definition at line 39 of file smt1_prop.cpp.

References forall_literals, new_variable(), out, and smt1_literal().

§ lcnf()

void smt1_propt::lcnf ( const bvt bv)
virtual

Implements propt.

Definition at line 232 of file smt1_prop.cpp.

References out, and smt1_literal().

Referenced by set_no_variables().

§ lequal()

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

Implements propt.

Definition at line 181 of file smt1_prop.cpp.

References lxor().

§ limplies()

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

Implements propt.

Definition at line 186 of file smt1_prop.cpp.

References lor().

§ lnand()

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

Implements propt.

Definition at line 171 of file smt1_prop.cpp.

References land().

§ lnor()

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

Implements propt.

Definition at line 176 of file smt1_prop.cpp.

References lor().

§ lor() [1/2]

literalt smt1_propt::lor ( literalt  a,
literalt  b 
)
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().

§ lor() [2/2]

literalt smt1_propt::lor ( const bvt bv)
virtual

Implements propt.

Definition at line 56 of file smt1_prop.cpp.

References forall_literals, new_variable(), out, and smt1_literal().

§ lselect()

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

Implements propt.

Definition at line 191 of file smt1_prop.cpp.

References const_literal(), new_variable(), out, and smt1_literal().

§ lxor() [1/2]

literalt smt1_propt::lxor ( const bvt bv)
virtual

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().

§ lxor() [2/2]

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

Implements propt.

Definition at line 147 of file smt1_prop.cpp.

References const_literal(), new_variable(), out, and smt1_literal().

§ new_variable()

literalt smt1_propt::new_variable ( void  )
virtual

Implements propt.

Definition at line 221 of file smt1_prop.cpp.

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

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

§ no_variables()

virtual size_t smt1_propt::no_variables ( ) const
inlinevirtual

Implements propt.

Definition at line 42 of file smt1_prop.h.

References _no_variables.

Referenced by reset_assignment().

§ prop_solve()

propt::resultt smt1_propt::prop_solve ( )
virtual

Implements propt.

Definition at line 294 of file smt1_prop.cpp.

Referenced by solver_text().

§ reset_assignment()

virtual void smt1_propt::reset_assignment ( )
inlinevirtual

Definition at line 60 of file smt1_prop.h.

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

§ set_assignment()

void smt1_propt::set_assignment ( literalt  a,
bool  value 
)
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().

Referenced by solver_text().

§ set_no_variables()

virtual void smt1_propt::set_no_variables ( size_t  no)
inlinevirtual

Definition at line 43 of file smt1_prop.h.

References lcnf().

§ smt1_literal()

std::string smt1_propt::smt1_literal ( literalt  l)
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().

§ solver_text()

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

Implements propt.

Definition at line 47 of file smt1_prop.h.

References l_get(), prop_solve(), and set_assignment().

Friends And Related Function Documentation

§ smt1_convt

friend class smt1_convt
friend

Definition at line 66 of file smt1_prop.h.

§ smt1_dect

friend class smt1_dect
friend

Definition at line 67 of file smt1_prop.h.

Member Data Documentation

§ _no_variables

size_t smt1_propt::_no_variables
protected

Definition at line 72 of file smt1_prop.h.

Referenced by new_variable(), no_variables(), and smt1_propt().

§ assignment

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

Definition at line 78 of file smt1_prop.h.

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

§ out

std::ostream& smt1_propt::out
protected

Definition at line 73 of file smt1_prop.h.

Referenced by finalize(), land(), lcnf(), lor(), lselect(), lxor(), new_variable(), and smt1_propt().


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