File tree 2 files changed +8
-10
lines changed
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 15
15
#include < util/threeval.h>
16
16
17
17
#include " literal_expr.h"
18
- #include " prop_conv.h"
19
18
20
19
cover_goalst::~cover_goalst ()
21
20
{
@@ -31,7 +30,7 @@ void cover_goalst::mark()
31
30
for (auto &g : goals)
32
31
if (
33
32
g.status == goalt::statust::UNKNOWN &&
34
- prop_conv .get (g.condition ).is_true ())
33
+ decision_procedure .get (g.condition ).is_true ())
35
34
{
36
35
g.status =goalt::statust::COVERED;
37
36
_number_covered++;
@@ -54,7 +53,7 @@ void cover_goalst::constraint()
54
53
disjuncts.push_back (g.condition );
55
54
56
55
// this is 'false' if there are no disjuncts
57
- prop_conv .set_to_true (disjunction (disjuncts));
56
+ decision_procedure .set_to_true (disjunction (disjuncts));
58
57
}
59
58
60
59
// / Try to cover all goals
@@ -71,7 +70,7 @@ operator()(message_handlert &message_handler)
71
70
_iterations++;
72
71
73
72
constraint ();
74
- dec_result = prop_conv ();
73
+ dec_result = decision_procedure ();
75
74
76
75
switch (dec_result)
77
76
{
Original file line number Diff line number Diff line change 19
19
#include < util/expr.h>
20
20
21
21
class message_handlert ;
22
- class prop_convt ;
23
22
24
23
// / Try to cover some given set of goals incrementally. This can be seen as a
25
24
// / heuristic variant of SAT-based set-cover. No minimality guarantee.
26
25
class cover_goalst
27
26
{
28
27
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 )
33
32
{
34
33
}
35
34
@@ -96,7 +95,7 @@ class cover_goalst
96
95
protected:
97
96
std::size_t _number_covered;
98
97
unsigned _iterations;
99
- prop_convt &prop_conv ;
98
+ decision_proceduret &decision_procedure ;
100
99
101
100
typedef std::vector<observert *> observerst;
102
101
observerst observers;
You can’t perform that action at this time.
0 commit comments