cprover
cnf_clause_listt Class Reference

#include <cnf_clause_list.h>

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

Public Types

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
}
 

Public Member Functions

 cnf_clause_listt ()
 
virtual ~cnf_clause_listt ()
 
virtual void lcnf (const bvt &bv)
 
virtual const std::string solver_text ()
 
virtual tvt l_get (literalt literal) const
 
virtual resultt prop_solve ()
 
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 &_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 ()
 

Static Public Member Functions

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 mstreamteom (mstreamt &m)
 
static mstreamtendl (mstreamt &m)
 

Protected Attributes

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

- 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 23 of file cnf_clause_list.h.

Member Typedef Documentation

◆ clausest

typedef std::list<bvt> cnf_clause_listt::clausest

Definition at line 43 of file cnf_clause_list.h.

Constructor & Destructor Documentation

◆ cnf_clause_listt()

cnf_clause_listt::cnf_clause_listt ( )
inline

Definition at line 26 of file cnf_clause_list.h.

◆ ~cnf_clause_listt()

virtual cnf_clause_listt::~cnf_clause_listt ( )
inlinevirtual

Definition at line 27 of file cnf_clause_list.h.

Member Function Documentation

◆ copy_to()

void cnf_clause_listt::copy_to ( cnft cnf) const
inline

◆ get_clauses()

clausest& cnf_clause_listt::get_clauses ( )
inline

Definition at line 45 of file cnf_clause_list.h.

References clauses.

◆ hash()

size_t cnf_clause_listt::hash ( ) const
inline

Definition at line 66 of file cnf_clause_list.h.

References clauses, hash_clause(), and messaget::result().

Referenced by qdimacs_cnft::hash().

◆ hash_clause()

static size_t cnf_clause_listt::hash_clause ( const bvt bv)
inlinestatic

Definition at line 57 of file cnf_clause_list.h.

References messaget::result().

Referenced by hash().

◆ l_get()

◆ lcnf()

void cnf_clause_listt::lcnf ( const bvt bv)
virtual

Implements propt.

Reimplemented in qbf_bdd_coret, qbf_squolem_coret, and qbf_squolemt.

Definition at line 17 of file cnf_clause_list.cpp.

References clauses, and cnft::process_clause().

Referenced by qdimacs_cnft::copy_to().

◆ no_clauses()

virtual size_t cnf_clause_listt::no_clauses ( ) const
inlinevirtual

◆ prop_solve()

virtual resultt cnf_clause_listt::prop_solve ( )
inlinevirtual

◆ solver_text()

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

Member Data Documentation

◆ clauses


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