cprover
qbf_qube_coret Class Reference

#include <qbf_qube_core.h>

+ Inheritance diagram for qbf_qube_coret:
+ Collaboration diagram for qbf_qube_coret:

Public Member Functions

 qbf_qube_coret ()
 
virtual ~qbf_qube_coret ()
 
virtual const std::string solver_text ()
 
virtual resultt prop_solve ()
 
virtual bool is_in_core (literalt l) const
 
virtual tvt l_get (literalt a) const
 
virtual modeltypet m_get (literalt a) const
 
virtual const exprt f_get (literalt)
 
- Public Member Functions inherited from qdimacs_coret
void simplify_extractbits (exprt &expr) const
 
- Public Member Functions inherited from qdimacs_cnft
 qdimacs_cnft ()
 
virtual ~qdimacs_cnft ()
 
virtual void write_qdimacs_cnf (std::ostream &out)
 
virtual void add_quantifier (const quantifiert &quantifier)
 
void add_quantifier (const quantifiert::typet type, const literalt l)
 
void add_existential_quantifier (const literalt l)
 
void add_universal_quantifier (const literalt l)
 
bool is_quantified (const literalt l) const
 
bool find_quantifier (const literalt l, quantifiert &q) const
 
virtual void set_quantifier (const quantifiert::typet type, const literalt l)
 
void copy_to (qdimacs_cnft &cnf) const
 
bool operator== (const qdimacs_cnft &other) const
 
size_t hash () const
 
- Public Member Functions inherited from dimacs_cnft
 dimacs_cnft ()
 
virtual ~dimacs_cnft ()
 
virtual void write_dimacs_cnf (std::ostream &out)
 
const std::string solver_text () override
 
void set_assignment (literalt a, bool value) override
 
bool is_in_conflict (literalt l) const override
 Returns true if an assumption is in the final conflict. More...
 
- Public Member Functions inherited from cnf_clause_listt
 cnf_clause_listt ()
 
virtual ~cnf_clause_listt ()
 
virtual void lcnf (const bvt &bv)
 
virtual size_t no_clauses () const
 
clausestget_clauses ()
 
void copy_to (cnft &cnf) const
 
size_t hash () const
 
- Public Member Functions inherited from cnft
 cnft ()
 
virtual ~cnft ()
 
virtual literalt land (literalt a, literalt b) override
 
virtual literalt lor (literalt a, literalt b) override
 
virtual literalt land (const bvt &bv) override
 Tseitin encoding of conjunction between multiple literals. More...
 
virtual literalt lor (const bvt &bv) override
 Tseitin encoding of disjunction between multiple literals. More...
 
virtual literalt lxor (const bvt &bv) override
 Tseitin encoding of XOR between multiple literals. More...
 
virtual literalt lxor (literalt a, literalt b) override
 
virtual literalt lnand (literalt a, literalt b) override
 
virtual literalt lnor (literalt a, literalt b) override
 
virtual literalt lequal (literalt a, literalt b) override
 
virtual literalt limplies (literalt a, literalt b) override
 
virtual literalt lselect (literalt a, literalt b, literalt c) override
 
virtual literalt new_variable () override
 Generate a new variable and return it as a literal. More...
 
virtual size_t no_variables () const override
 
virtual void set_no_variables (size_t no)
 
void gate_and (literalt a, literalt b, literalt o)
 Tseitin encoding of conjunction of two literals. More...
 
void gate_or (literalt a, literalt b, literalt o)
 Tseitin encoding of disjunction of two literals. More...
 
void gate_xor (literalt a, literalt b, literalt o)
 Tseitin encoding of XOR of two literals. More...
 
void gate_nand (literalt a, literalt b, literalt o)
 Tseitin encoding of NAND of two literals. More...
 
void gate_nor (literalt a, literalt b, literalt o)
 Tseitin encoding of NOR of two literals. More...
 
void gate_equal (literalt a, literalt b, literalt o)
 Tseitin encoding of equality between two literals. More...
 
void gate_implies (literalt a, literalt b, literalt o)
 Tseitin encoding of implication between two literals. More...
 
- 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 &)
 
virtual bool has_set_assumptions () const
 
virtual void set_variable_name (literalt, const irep_idt &)
 
bvt new_variables (std::size_t width)
 generates a bitvector of given width with new variables 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 Types

typedef std::map< unsigned, bool > assignmentt
 

Protected Attributes

std::string qbf_tmp_file
 
assignmentt assignment
 
- Protected Attributes inherited from dimacs_cnft
bool break_lines
 
- Protected Attributes inherited from cnf_clause_listt
clausest clauses
 
- Protected Attributes inherited from cnft
size_t _no_variables
 
- Protected Attributes inherited from propt
bvt lcnf_bv
 
- Protected Attributes inherited from messaget
message_handlertmessage_handler
 
mstreamt mstream
 

Additional Inherited Members

- Public Types inherited from qdimacs_coret
enum  modeltypet { M_TRUE, M_FALSE, M_DONTCARE, M_COMPLEX }
 
typedef std::pair< exprt, unsigned > symbol_mapt
 
typedef std::map< unsigned, symbol_maptvariable_mapt
 
- Public Types inherited from qdimacs_cnft
typedef std::vector< quantifiertquantifierst
 
- Public Types inherited from cnf_clause_listt
typedef std::list< bvtclausest
 
- 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 cnf_clause_listt
static size_t hash_clause (const bvt &bv)
 
- Static Public Member Functions inherited from cnft
static bvt eliminate_duplicates (const bvt &)
 eliminate duplicates from given vector of literals More...
 
- 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...
 
- Public Attributes inherited from qdimacs_coret
variable_mapt variable_map
 
- Public Attributes inherited from qdimacs_cnft
quantifierst quantifiers
 
- 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...
 
- Protected Member Functions inherited from qdimacs_cnft
void write_prefix (std::ostream &out) const
 
- Protected Member Functions inherited from dimacs_cnft
void write_problem_line (std::ostream &out)
 
void write_clauses (std::ostream &out)
 
- Protected Member Functions inherited from cnft
bool process_clause (const bvt &bv, bvt &dest)
 filter 'true' from clause, eliminate duplicates, recognise trivially satisfied clauses More...
 
- Static Protected Member Functions inherited from cnft
static bool is_all (const bvt &bv, literalt l)
 

Detailed Description

Definition at line 17 of file qbf_qube_core.h.

Member Typedef Documentation

◆ assignmentt

typedef std::map<unsigned, bool> qbf_qube_coret::assignmentt
protected

Definition at line 22 of file qbf_qube_core.h.

Constructor & Destructor Documentation

◆ qbf_qube_coret()

qbf_qube_coret::qbf_qube_coret ( )

Definition at line 18 of file qbf_qube_core.cpp.

◆ ~qbf_qube_coret()

qbf_qube_coret::~qbf_qube_coret ( )
virtual

Definition at line 24 of file qbf_qube_core.cpp.

Member Function Documentation

◆ f_get()

virtual const exprt qbf_qube_coret::f_get ( literalt  )
inlinevirtual

Implements qdimacs_coret.

Definition at line 54 of file qbf_qube_core.h.

◆ is_in_core()

bool qbf_qube_coret::is_in_core ( literalt  l) const
virtual

Implements qdimacs_coret.

Definition at line 132 of file qbf_qube_core.cpp.

◆ l_get()

virtual tvt qbf_qube_coret::l_get ( literalt  a) const
inlinevirtual

Implements qdimacs_coret.

Definition at line 34 of file qbf_qube_core.h.

◆ m_get()

qdimacs_coret::modeltypet qbf_qube_coret::m_get ( literalt  a) const
virtual

Implements qdimacs_coret.

Definition at line 137 of file qbf_qube_core.cpp.

◆ prop_solve()

propt::resultt qbf_qube_coret::prop_solve ( )
virtual

Reimplemented from cnf_clause_listt.

Definition at line 33 of file qbf_qube_core.cpp.

◆ solver_text()

const std::string qbf_qube_coret::solver_text ( )
virtual

Reimplemented from qdimacs_cnft.

Definition at line 28 of file qbf_qube_core.cpp.

Member Data Documentation

◆ assignment

assignmentt qbf_qube_coret::assignment
protected

Definition at line 23 of file qbf_qube_core.h.

◆ qbf_tmp_file

std::string qbf_qube_coret::qbf_tmp_file
protected

Definition at line 20 of file qbf_qube_core.h.


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