Skip to content

Commit 83e1395

Browse files
committed
Alternative bdd -> exprt translation expanding ID_if
Quantifier flatting presently cannot cope with ID_if.
1 parent 74457af commit 83e1395

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
@@ -165,7 +165,14 @@ exprt bdd_exprt::as_expr(const bdd_exprt::BDDt &r) const
165165
else if(r.high().is_true())
166166
return or_exprt(n_expr, as_expr(r.low()));
167167
else
168+
#if 0
169+
return
170+
and_exprt(
171+
or_exprt(not_exprt(n_expr), as_expr(r.high())),
172+
or_exprt(n_expr, as_expr(r.low())));
173+
#else
168174
return if_exprt(n_expr, as_expr(r.high()), as_expr(r.low()));
175+
#endif
169176
}
170177

171178
/*******************************************************************\

0 commit comments

Comments
 (0)