File tree Expand file tree Collapse file tree 5 files changed +30
-11
lines changed Expand file tree Collapse file tree 5 files changed +30
-11
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ class decision_procedure_assumptionst : public decision_procedure_incrementalt
20
20
// / Set assumptions for the next call to operator() to solve the problem
21
21
virtual void set_assumptions (const bvt &) = 0;
22
22
23
- // / Returns true if an assumption is in the final conflict
24
- virtual bool is_in_conflict (literalt l) const = 0;
25
-
26
23
virtual ~decision_procedure_assumptionst () = default ;
27
24
};
28
25
Original file line number Diff line number Diff line change 20
20
#include " literal.h"
21
21
#include " literal_expr.h"
22
22
#include " prop.h"
23
+ #include " solver_conflicts.h"
23
24
#include " solver_resource_limits.h"
24
25
25
26
class prop_conv_solvert : public decision_procedure_assumptionst ,
27
+ public solver_conflictst,
26
28
public solver_resource_limitst
27
29
{
28
30
public:
Original file line number Diff line number Diff line change
1
+ /* ******************************************************************\
2
+
3
+ Module: Capability to return assumptions that are in a conflict
4
+ when solving under assumptions
5
+
6
+ Author: Peter Schrammel
7
+
8
+ \*******************************************************************/
9
+
10
+ // / \file
11
+ // / Capability to return assumptions that are in a conflict
12
+ // when solving under assumptions
13
+
14
+ #ifndef CPROVER_SOLVERS_PROP_SOLVER_CONFLICTS_H
15
+ #define CPROVER_SOLVERS_PROP_SOLVER_CONFLICTS_H
16
+
17
+ class literalt ;
18
+
19
+ class solver_conflictst
20
+ {
21
+ public:
22
+ // / Returns true if an assumption is in the final conflict
23
+ virtual bool is_in_conflict (literalt) const = 0;
24
+
25
+ virtual ~solver_conflictst () = default ;
26
+ };
27
+
28
+ #endif // CPROVER_SOLVERS_PROP_SOLVER_CONFLICTS_H
Original file line number Diff line number Diff line change @@ -75,13 +75,6 @@ void smt2_convt::set_all_frozen()
75
75
// not needed
76
76
}
77
77
78
- bool smt2_convt::is_in_conflict (literalt l) const
79
- {
80
- // we cannot do that
81
- UNREACHABLE;
82
- return false ;
83
- }
84
-
85
78
void smt2_convt::write_header ()
86
79
{
87
80
out << " ; SMT 2" << " \n " ;
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ class smt2_convt : public decision_procedure_assumptionst
116
116
literalt convert (const exprt &expr) override ;
117
117
void set_frozen (literalt) override ;
118
118
void set_all_frozen () override ;
119
- bool is_in_conflict (literalt l) const override ;
120
119
void set_to (const exprt &expr, bool value) override ;
121
120
exprt get (const exprt &expr) const override ;
122
121
std::string decision_procedure_text () const override
You can’t perform that action at this time.
0 commit comments