cprover
satcheck_ipasir.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module:
4 
5 Author: Norbert Manthey, nmanthey@amazon.com
6 
7 See \ref compilation-and-development-subsection-sat-solver for build
8 instructions.
9 
10 \*******************************************************************/
11 
12 #ifndef CPROVER_SOLVERS_SAT_SATCHECK_IPASIR_H
13 #define CPROVER_SOLVERS_SAT_SATCHECK_IPASIR_H
14 
15 #include "cnf.h"
16 
19 {
20 public:
22  virtual ~satcheck_ipasirt() override;
23 
25  const std::string solver_text() override;
26 
28  tvt l_get(literalt a) const override final;
29 
30  void lcnf(const bvt &bv) override final;
31 
32  /* This method is not supported, and currently not called anywhere in CBMC */
33  void set_assignment(literalt a, bool value) override;
34 
35  void set_assumptions(const bvt &_assumptions) override;
36 
37  bool is_in_conflict(literalt a) const override;
38  bool has_set_assumptions() const override final
39  {
40  return true;
41  }
42  bool has_is_in_conflict() const override final
43  {
44  return true;
45  }
46 
47 protected:
48  resultt do_prop_solve() override;
49 
50  void *solver;
51 
53 };
54 
55 #endif // CPROVER_SOLVERS_SAT_SATCHECK_IPASIR_H
satcheck_ipasirt::set_assignment
void set_assignment(literalt a, bool value) override
bvt
std::vector< literalt > bvt
Definition: literal.h:201
satcheck_ipasirt::assumptions
bvt assumptions
Definition: satcheck_ipasir.h:52
satcheck_ipasirt::satcheck_ipasirt
satcheck_ipasirt()
satcheck_ipasirt::solver_text
const std::string solver_text() override
This method returns the description produced by the linked SAT solver.
satcheck_ipasirt::has_is_in_conflict
bool has_is_in_conflict() const override final
Definition: satcheck_ipasir.h:42
cnf_solvert
Definition: cnf.h:70
satcheck_ipasirt::is_in_conflict
bool is_in_conflict(literalt a) const override
Returns true if an assumption is in the final conflict.
satcheck_ipasirt::l_get
tvt l_get(literalt a) const override final
This method returns the truth value for a literal of the current SAT model.
satcheck_ipasirt::has_set_assumptions
bool has_set_assumptions() const override final
Definition: satcheck_ipasir.h:38
satcheck_ipasirt::lcnf
void lcnf(const bvt &bv) override final
propt::resultt
resultt
Definition: prop.h:99
satcheck_ipasirt::~satcheck_ipasirt
virtual ~satcheck_ipasirt() override
tvt
Definition: threeval.h:20
satcheck_ipasirt::set_assumptions
void set_assumptions(const bvt &_assumptions) override
literalt
Definition: literal.h:26
cnf.h
CNF Generation, via Tseitin.
satcheck_ipasirt::do_prop_solve
resultt do_prop_solve() override
satcheck_ipasirt
Interface for generic SAT solver interface IPASIR.
Definition: satcheck_ipasir.h:19
satcheck_ipasirt::solver
void * solver
Definition: satcheck_ipasir.h:50