cprover
propt Class Referenceabstract

TO_BE_DOCUMENTED. More...

#include <prop.h>

+ Inheritance diagram for propt:
+ Collaboration diagram for propt:

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 &)
 
virtual bool has_set_assumptions () const
 
virtual literalt new_variable ()=0
 
virtual void set_variable_name (literalt, const irep_idt &)
 
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)=0
 
virtual bool is_in_conflict (literalt l) const =0
 Returns true if an assumption is in the final conflict. More...
 
virtual bool has_is_in_conflict () const
 
virtual void set_frozen (literalt)
 
virtual void set_time_limit_seconds (uint32_t)
 
- Public Member Functions inherited from messaget
virtual void set_message_handler (message_handlert &_message_handler)
 
message_handlertget_message_handler ()
 
 messaget ()
 
 messaget (const messaget &other)
 
messagetoperator= (const messaget &other)
 
 messaget (message_handlert &_message_handler)
 
virtual ~messaget ()
 
mstreamtget_mstream (unsigned message_level) const
 
mstreamterror () const
 
mstreamtwarning () const
 
mstreamtresult () const
 
mstreamtstatus () const
 
mstreamtstatistics () const
 
mstreamtprogress () const
 
mstreamtdebug () const
 
void conditional_output (mstreamt &mstream, const std::function< void(mstreamt &)> &output_generator) const
 Generate output to message_stream using output_generator if the configured verbosity is at least as high as that of message_stream. More...
 

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 unsigned eval_verbosity (const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
 Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest. More...
 
static commandt command (unsigned c)
 Create an ECMA-48 SGR (Select Graphic Rendition) command. More...
 
- Static Public Attributes inherited from messaget
static eomt eom
 
static const commandt reset
 return to default formatting, as defined by the terminal More...
 
static const commandt red
 render text with red foreground color More...
 
static const commandt green
 render text with green foreground color More...
 
static const commandt yellow
 render text with yellow foreground color More...
 
static const commandt blue
 render text with blue foreground color More...
 
static const commandt magenta
 render text with magenta foreground color More...
 
static const commandt cyan
 render text with cyan foreground color More...
 
static const commandt bright_red
 render text with bright red foreground color More...
 
static const commandt bright_green
 render text with bright green foreground color More...
 
static const commandt bright_yellow
 render text with bright yellow foreground color More...
 
static const commandt bright_blue
 render text with bright blue foreground color More...
 
static const commandt bright_magenta
 render text with bright magenta foreground color More...
 
static const commandt bright_cyan
 render text with bright cyan foreground color More...
 
static const commandt bold
 render text with bold font More...
 
static const commandt faint
 render text with faint font More...
 
static const commandt italic
 render italic text More...
 
static const commandt underline
 render underlined text More...
 

Detailed Description

TO_BE_DOCUMENTED.

Definition at line 24 of file prop.h.

Member Enumeration Documentation

◆ resultt

enum propt::resultt
strong
Enumerator
P_SATISFIABLE 
P_UNSATISFIABLE 
P_ERROR 

Definition at line 96 of file prop.h.

Constructor & Destructor Documentation

◆ propt()

propt::propt ( )
inline

Definition at line 27 of file prop.h.

◆ ~propt()

virtual propt::~propt ( )
inlinevirtual

Definition at line 28 of file prop.h.

Member Function Documentation

◆ cnf_handled_well()

virtual bool propt::cnf_handled_well ( ) const
inlinevirtual

Definition at line 82 of file prop.h.

◆ has_is_in_conflict()

◆ has_set_assumptions()

◆ has_set_to()

virtual bool propt::has_set_to ( ) const
inlinevirtual

Definition at line 78 of file prop.h.

◆ is_in_conflict()

virtual bool propt::is_in_conflict ( literalt  l) const
pure virtual

Returns true if an assumption is in the final conflict.

Note that only literals that are assumptions (see set_assumptions) may be queried.

Returns
true iff the given literal is part of the final conflict

Implemented in satcheck_minisat2_baset< T >, satcheck_minisat2_baset< Minisat::SimpSolver >, satcheck_minisat2_baset< Minisat::Solver >, satcheck_glucose_baset< T >, satcheck_glucose_baset< Glucose::Solver >, satcheck_glucose_baset< Glucose::SimpSolver >, satcheck_minisat1_baset, satcheck_ipasirt, satcheck_cadicalt, satcheck_lingelingt, dimacs_cnft, and satcheck_picosatt.

◆ l_get()

◆ l_set_to()

virtual void propt::l_set_to ( literalt  a,
bool  value 
)
inlinevirtual

Definition at line 44 of file prop.h.

◆ l_set_to_false()

void propt::l_set_to_false ( literalt  a)
inline

Definition at line 51 of file prop.h.

◆ l_set_to_true()

void propt::l_set_to_true ( literalt  a)
inline

Definition at line 49 of file prop.h.

◆ land() [1/2]

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

Implemented in cnft.

◆ land() [2/2]

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

Implemented in cnft.

◆ lcnf() [1/4]

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

Definition at line 55 of file prop.h.

◆ lcnf() [2/4]

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

Definition at line 58 of file prop.h.

◆ lcnf() [3/4]

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

Definition at line 67 of file prop.h.

◆ lcnf() [4/4]

◆ lequal()

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

Implemented in cnft.

◆ limplies()

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

Implemented in cnft.

◆ lnand()

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

Implemented in cnft.

◆ lnor()

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

Implemented in cnft.

◆ lor() [1/2]

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

Implemented in qbf_bdd_coret, and cnft.

◆ lor() [2/2]

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

Implemented in qbf_bdd_coret, and cnft.

◆ lselect()

virtual literalt propt::lselect ( literalt  a,
literalt  b,
literalt  c 
)
pure virtual

Implemented in cnft.

◆ lxor() [1/2]

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

Implemented in cnft.

◆ lxor() [2/2]

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

Implemented in cnft.

◆ new_variable()

virtual literalt propt::new_variable ( )
pure virtual

Implemented in qbf_bdd_coret, cnft, and qbf_bdd_certificatet.

◆ new_variables()

bvt propt::new_variables ( std::size_t  width)

generates a bitvector of given width with new variables

Returns
bitvector

Definition at line 20 of file prop.cpp.

◆ no_variables()

virtual size_t propt::no_variables ( ) const
pure virtual

Implemented in cnft.

◆ prop_solve()

◆ set_assignment()

◆ set_assumptions()

◆ set_equal()

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

asserts a==b in the propositional formula

Definition at line 12 of file prop.cpp.

◆ set_frozen()

virtual void propt::set_frozen ( literalt  )
inlinevirtual

Reimplemented in satcheck_minisat_simplifiert, satcheck_glucose_simplifiert, and satcheck_lingelingt.

Definition at line 111 of file prop.h.

◆ set_time_limit_seconds()

virtual void propt::set_time_limit_seconds ( uint32_t  )
inlinevirtual

◆ set_variable_name()

virtual void propt::set_variable_name ( literalt  ,
const irep_idt  
)
inlinevirtual

Definition at line 90 of file prop.h.

◆ solver_text()

Member Data Documentation

◆ lcnf_bv

bvt propt::lcnf_bv
protected

Definition at line 121 of file prop.h.


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