File tree 2 files changed +10
-17
lines changed
2 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 15
15
#include < iosfwd>
16
16
#include < string>
17
17
18
- #include " literal.h"
19
-
20
18
class exprt ;
21
- class tvt ;
22
19
23
20
class decision_proceduret
24
21
{
@@ -33,10 +30,6 @@ class decision_proceduret
33
30
// / For a Boolean expression \p expr, add the constraint 'not expr'
34
31
void set_to_false (const exprt &expr);
35
32
36
- // / Convert a Boolean expression and return the corresponding literal
37
- // / This will go away, use handle(expr) instead
38
- virtual literalt convert (const exprt &expr) = 0;
39
-
40
33
// / Generate a handle for an expression; this offers an efficient way
41
34
// / to refer to the expression in subsequent calls to \ref get or
42
35
// / \ref set_to
@@ -58,11 +51,6 @@ class decision_proceduret
58
51
// / Return `nil` if not available
59
52
virtual exprt get (const exprt &expr) const = 0;
60
53
61
- // / Return value of literal \p l from satisfying assignment.
62
- // / Return tvt::UNKNOWN if not available
63
- // / This will go away, use get instead.
64
- virtual tvt l_get (literalt l) const = 0;
65
-
66
54
// / Print satisfying assignment to \p out
67
55
virtual void print_assignment (std::ostream &out) const = 0;
68
56
Original file line number Diff line number Diff line change 11
11
#define CPROVER_SOLVERS_PROP_PROP_CONV_H
12
12
13
13
#include " decision_procedure.h"
14
+ #include " literal.h"
15
+
16
+ class tvt ;
14
17
15
18
// API that provides a "handle" in the form of a literalt
16
19
// for expressions.
@@ -29,6 +32,13 @@ class prop_convt:public decision_proceduret
29
32
// / but solver-specific representation.
30
33
exprt handle (const exprt &expr) override ;
31
34
35
+ // / Convert a Boolean expression and return the corresponding literal
36
+ virtual literalt convert (const exprt &expr) = 0;
37
+
38
+ // / Return value of literal \p l from satisfying assignment.
39
+ // / Return tvt::UNKNOWN if not available
40
+ virtual tvt l_get (literalt l) const = 0;
41
+
32
42
// incremental solving
33
43
virtual void set_frozen (literalt a);
34
44
virtual void set_frozen (const bvt &);
@@ -41,9 +51,4 @@ class prop_convt:public decision_proceduret
41
51
virtual bool has_is_in_conflict () const { return false ; }
42
52
};
43
53
44
- //
45
- // an instance of the above that converts the
46
- // propositional skeleton by passing it to a propt
47
- //
48
-
49
54
#endif // CPROVER_SOLVERS_PROP_PROP_CONV_H
You can’t perform that action at this time.
0 commit comments