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
2020 // / Set assumptions for the next call to operator() to solve the problem
2121 virtual void set_assumptions (const bvt &) = 0;
2222
23- // / Returns true if an assumption is in the final conflict
24- virtual bool is_in_conflict (literalt l) const = 0;
25-
2623 virtual ~decision_procedure_assumptionst () = default ;
2724};
2825
Original file line number Diff line number Diff line change 2020#include " literal.h"
2121#include " literal_expr.h"
2222#include " prop.h"
23+ #include " solver_conflicts.h"
2324#include " solver_resource_limits.h"
2425
2526class prop_conv_solvert : public decision_procedure_assumptionst ,
27+ public solver_conflictst,
2628 public solver_resource_limitst
2729{
2830public:
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()
7575 // not needed
7676}
7777
78- bool smt2_convt::is_in_conflict (literalt l) const
79- {
80- // we cannot do that
81- UNREACHABLE;
82- return false ;
83- }
84-
8578void smt2_convt::write_header ()
8679{
8780 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
116116 literalt convert (const exprt &expr) override ;
117117 void set_frozen (literalt) override ;
118118 void set_all_frozen () override ;
119- bool is_in_conflict (literalt l) const override ;
120119 void set_to (const exprt &expr, bool value) override ;
121120 exprt get (const exprt &expr) const override ;
122121 std::string decision_procedure_text () const override
You can’t perform that action at this time.
0 commit comments