Skip to content

Commit b004fb8

Browse files
author
Daniel Kroening
committed
cover_goalst does not need prop_convt
No methods of prop_convt are used.
1 parent 22e71cd commit b004fb8

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/solvers/prop/cover_goals.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Author: Daniel Kroening, [email protected]
1515
#include <util/threeval.h>
1616

1717
#include "literal_expr.h"
18-
#include "prop_conv.h"
1918

2019
cover_goalst::~cover_goalst()
2120
{
@@ -31,7 +30,7 @@ void cover_goalst::mark()
3130
for(auto &g : goals)
3231
if(
3332
g.status == goalt::statust::UNKNOWN &&
34-
prop_conv.get(g.condition).is_true())
33+
decision_procedure.get(g.condition).is_true())
3534
{
3635
g.status=goalt::statust::COVERED;
3736
_number_covered++;
@@ -54,7 +53,7 @@ void cover_goalst::constraint()
5453
disjuncts.push_back(g.condition);
5554

5655
// this is 'false' if there are no disjuncts
57-
prop_conv.set_to_true(disjunction(disjuncts));
56+
decision_procedure.set_to_true(disjunction(disjuncts));
5857
}
5958

6059
/// Try to cover all goals
@@ -71,7 +70,7 @@ operator()(message_handlert &message_handler)
7170
_iterations++;
7271

7372
constraint();
74-
dec_result = prop_conv();
73+
dec_result = decision_procedure();
7574

7675
switch(dec_result)
7776
{

src/solvers/prop/cover_goals.h

+5-6
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@ Author: Daniel Kroening, [email protected]
1919
#include <util/expr.h>
2020

2121
class message_handlert;
22-
class prop_convt;
2322

2423
/// Try to cover some given set of goals incrementally. This can be seen as a
2524
/// heuristic variant of SAT-based set-cover. No minimality guarantee.
2625
class cover_goalst
2726
{
2827
public:
29-
explicit cover_goalst(prop_convt &_prop_conv):
30-
_number_covered(0),
31-
_iterations(0),
32-
prop_conv(_prop_conv)
28+
explicit cover_goalst(decision_proceduret &_decision_procedure)
29+
: _number_covered(0),
30+
_iterations(0),
31+
decision_procedure(_decision_procedure)
3332
{
3433
}
3534

@@ -96,7 +95,7 @@ class cover_goalst
9695
protected:
9796
std::size_t _number_covered;
9897
unsigned _iterations;
99-
prop_convt &prop_conv;
98+
decision_proceduret &decision_procedure;
10099

101100
typedef std::vector<observert *> observerst;
102101
observerst observers;

0 commit comments

Comments
 (0)