cprover
propt Class Referenceabstract

TO_BE_DOCUMENTED. More...

#include <prop.h>

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

Public Types

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
}
 

Public Member Functions

 propt ()
 
virtual ~propt ()
 
virtual literalt land (literalt a, literalt b)=0
 
virtual literalt lor (literalt a, literalt b)=0
 
virtual literalt land (const bvt &bv)=0
 
virtual literalt lor (const bvt &bv)=0
 
virtual literalt lxor (literalt a, literalt b)=0
 
virtual literalt lxor (const bvt &bv)=0
 
virtual literalt lnand (literalt a, literalt b)=0
 
virtual literalt lnor (literalt a, literalt b)=0
 
virtual literalt lequal (literalt a, literalt b)=0
 
virtual literalt limplies (literalt a, literalt b)=0
 
virtual literalt lselect (literalt a, literalt b, literalt c)=0
 
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 void lcnf (const bvt &bv)=0
 
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 literalt new_variable ()=0
 
virtual void set_variable_name (literalt a, const std::string &name)
 
virtual size_t no_variables () const =0
 
bvt new_variables (std::size_t width)
 generates a bitvector of given width with new variables More...
 
virtual const std::string solver_text ()=0
 
virtual resultt prop_solve ()=0
 
virtual tvt l_get (literalt a) const =0
 
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 Attributes

bvt lcnf_bv
 
- Protected Attributes inherited from messaget
message_handlertmessage_handler
 
mstreamt mstream
 

Additional Inherited Members

- Static Public Member Functions inherited from messaget
static mstreamteom (mstreamt &m)
 
static mstreamtendl (mstreamt &m)
 

Detailed Description

TO_BE_DOCUMENTED.

Definition at line 22 of file prop.h.

Member Enumeration Documentation

§ resultt

enum propt::resultt
strong
Enumerator
P_SATISFIABLE 
P_UNSATISFIABLE 
P_ERROR 

Definition at line 94 of file prop.h.

Constructor & Destructor Documentation

§ propt()

propt::propt ( )
inline

Definition at line 25 of file prop.h.

§ ~propt()

virtual propt::~propt ( )
inlinevirtual

Definition at line 26 of file prop.h.

References land(), lequal(), limplies(), lnand(), lnor(), lor(), lselect(), lxor(), and set_equal().

Member Function Documentation

§ cnf_handled_well()

virtual bool propt::cnf_handled_well ( ) const
inlinevirtual

§ copy_assignment_from()

void propt::copy_assignment_from ( const propt prop)
virtual

Implements prop_assignmentt.

Reimplemented in cnf_clause_list_assignmentt.

Definition at line 25 of file prop.cpp.

Referenced by cnf_clause_list_assignmentt::l_get().

§ has_is_in_conflict()

§ has_set_assumptions()

§ has_set_to()

§ is_in_conflict()

§ l_get()

§ l_set_to()

§ l_set_to_false()

void propt::l_set_to_false ( literalt  a)
inline

Definition at line 49 of file prop.h.

References l_set_to().

Referenced by bv_utilst::adder_no_overflow(), and bv_utilst::unsigned_multiplier_no_overflow().

§ l_set_to_true()

§ land() [1/2]

virtual literalt propt::land ( literalt  a,
literalt  b 
)
pure virtual

§ land() [2/2]

virtual literalt propt::land ( const bvt bv)
pure virtual

§ lcnf() [1/4]

§ lcnf() [2/4]

void propt::lcnf ( literalt  l0,
literalt  l1,
literalt  l2 
)
inline

Definition at line 56 of file prop.h.

References lcnf(), and lcnf_bv.

§ lcnf() [3/4]

void propt::lcnf ( literalt  l0,
literalt  l1,
literalt  l2,
literalt  l3 
)
inline

Definition at line 65 of file prop.h.

References lcnf(), and lcnf_bv.

§ lcnf() [4/4]

§ lequal()

§ limplies()

§ lnand()

virtual literalt propt::lnand ( literalt  a,
literalt  b 
)
pure virtual

§ lnor()

virtual literalt propt::lnor ( literalt  a,
literalt  b 
)
pure virtual

§ lor() [1/2]

§ lor() [2/2]

virtual literalt propt::lor ( const bvt bv)
pure virtual

§ lselect()

§ lxor() [1/2]

§ lxor() [2/2]

virtual literalt propt::lxor ( const bvt bv)
pure virtual

§ new_variable()

§ new_variables()

§ no_variables()

§ prop_solve()

§ set_assignment()

§ set_assumptions()

§ set_equal()

void propt::set_equal ( literalt  a,
literalt  b 
)
virtual

asserts a==b in the propositional formula

Reimplemented in aig_prop_baset.

Definition at line 14 of file prop.cpp.

References lcnf().

Referenced by equalityt::add_equality_constraints(), l_set_to(), boolbvt::post_process_quantifiers(), bv_utilst::set_equal(), boolbv_mapt::set_literals(), and ~propt().

§ set_frozen()

virtual void propt::set_frozen ( literalt  a)
inlinevirtual

§ set_variable_name()

virtual void propt::set_variable_name ( literalt  a,
const std::string &  name 
)
inlinevirtual

Definition at line 88 of file prop.h.

References new_variables(), no_variables(), and solver_text().

§ solver_text()

Member Data Documentation

§ lcnf_bv

bvt propt::lcnf_bv
protected

Definition at line 113 of file prop.h.

Referenced by lcnf().


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