Skip to content

Commit 255f431

Browse files
committed
Alternative bdd -> exprt translation expanding ID_if
Quantifier flatting presently cannot cope with ID_if.
1 parent 4b2774b commit 255f431

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/solvers/prop/bdd_expr.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,14 @@ exprt bdd_exprt::as_expr(const mini_bddt &r) const
132132
else if(r.high().is_true())
133133
return or_exprt(n_expr, as_expr(r.low()));
134134
else
135+
#if 0
136+
return
137+
and_exprt(
138+
or_exprt(not_exprt(n_expr), as_expr(r.high())),
139+
or_exprt(n_expr, as_expr(r.low())));
140+
#else
135141
return if_exprt(n_expr, as_expr(r.high()), as_expr(r.low()));
142+
#endif
136143
}
137144

138145
exprt bdd_exprt::as_expr() const

0 commit comments

Comments
 (0)