Skip to content

Commit b20067a

Browse files
author
Daniel Kroening
committed
add the decision_proceduret::handle API
1 parent eed359b commit b20067a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/solvers/prop/decision_procedure.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ class decision_proceduret
3434
void set_to_false(const exprt &expr);
3535

3636
/// Convert a Boolean expression and return the corresponding literal
37+
/// This will go away, use handle(expr) instead
3738
virtual literalt convert(const exprt &expr) = 0;
3839

40+
/// Generate a handle for an expression; this offers an efficient way
41+
/// to refer to the expression in subsequent calls to \ref get or
42+
/// \ref set_to
43+
virtual exprt handle(const exprt &expr) = 0;
44+
3945
/// Result of running the decision procedure
4046
enum class resultt
4147
{
@@ -54,6 +60,7 @@ class decision_proceduret
5460

5561
/// Return value of literal \p l from satisfying assignment.
5662
/// Return tvt::UNKNOWN if not available
63+
/// This will go away, use get instead.
5764
virtual tvt l_get(literalt l) const = 0;
5865

5966
/// Print satisfying assignment to \p out

0 commit comments

Comments
 (0)