CBMC
satcheck_picosat.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module:
4 
5 Author: Michael Tautschnig, michael.tautschnig@cs.ox.ac.uk
6 
7 \*******************************************************************/
8 
9 
10 #ifndef CPROVER_SOLVERS_SAT_SATCHECK_PICOSAT_H
11 #define CPROVER_SOLVERS_SAT_SATCHECK_PICOSAT_H
12 
13 #include "cnf.h"
14 
15 // NOLINTNEXTLINE(readability/identifiers)
16 struct PicoSAT;
17 
19 {
20 public:
23 
24  std::string solver_text() const override;
25  tvt l_get(literalt a) const override;
26 
27  void lcnf(const bvt &bv) override;
28  void set_assignment(literalt a, bool value) override;
29 
30  bool is_in_conflict(literalt a) const override;
31  bool has_assumptions() const override
32  {
33  return true;
34  }
35  bool has_is_in_conflict() const override
36  {
37  return true;
38  }
39 
40 protected:
41  resultt do_prop_solve(const bvt &assumptions) override;
42 
43 private:
44  PicoSAT *picosat;
45 };
46 
47 #endif // CPROVER_SOLVERS_SAT_SATCHECK_PICOSAT_H
tvt l_get(literalt a) const override
void set_assignment(literalt a, bool value) override
std::string solver_text() const override
bool is_in_conflict(literalt a) const override
Returns true if an assumption is in the final conflict.
resultt do_prop_solve(const bvt &assumptions) override
bool has_assumptions() const override
void lcnf(const bvt &bv) override
bool has_is_in_conflict() const override
Definition: threeval.h:20
CNF Generation, via Tseitin.
std::vector< literalt > bvt
Definition: literal.h:201
resultt
The result of goto verifying.
Definition: properties.h:45