cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
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
17
#include <
solvers/hardness_collector.h
>
18
20
class
satcheck_ipasirt
:
public
cnf_solvert
,
public
hardness_collectort
21
{
22
public
:
23
satcheck_ipasirt
(
message_handlert
&message_handler);
24
virtual
~satcheck_ipasirt
()
override
;
25
27
std::string
solver_text
()
const override
;
28
30
tvt
l_get
(
literalt
a)
const
override
final
;
31
32
void
lcnf
(
const
bvt
&bv)
override
final
;
33
34
/* This method is not supported, and currently not called anywhere in CBMC */
35
void
set_assignment
(
literalt
a,
bool
value)
override
;
36
37
bool
is_in_conflict
(
literalt
a)
const override
;
38
bool
has_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
(
const
bvt
&assumptions)
override
;
49
50
void
*
solver
;
51
};
52
53
#endif
// CPROVER_SOLVERS_SAT_SATCHECK_IPASIR_H
cnf_solvert::cnf_solvert
cnf_solvert(message_handlert &message_handler)
Definition
cnf.h:75
hardness_collectort
Definition
hardness_collector.h:45
literalt
Definition
literal.h:26
message_handlert
Definition
message.h:27
propt::resultt
resultt
Definition
prop.h:101
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_is_in_conflict
bool has_is_in_conflict() const override final
Definition
satcheck_ipasir.h:42
satcheck_ipasirt::~satcheck_ipasirt
virtual ~satcheck_ipasirt() override
satcheck_ipasirt::satcheck_ipasirt
satcheck_ipasirt(message_handlert &message_handler)
satcheck_ipasirt::solver_text
std::string solver_text() const override
This method returns the description produced by the linked SAT solver.
satcheck_ipasirt::has_assumptions
bool has_assumptions() const override final
Definition
satcheck_ipasir.h:38
satcheck_ipasirt::solver
void * solver
Definition
satcheck_ipasir.h:50
satcheck_ipasirt::lcnf
void lcnf(const bvt &bv) override final
satcheck_ipasirt::set_assignment
void set_assignment(literalt a, bool value) override
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::do_prop_solve
resultt do_prop_solve(const bvt &assumptions) override
tvt
Definition
threeval.h:20
cnf.h
CNF Generation, via Tseitin.
hardness_collector.h
Capability to collect the statistics of the complexity of individual solver queries.
bvt
std::vector< literalt > bvt
Definition
literal.h:201
solvers
sat
satcheck_ipasir.h
Generated by
1.17.0