Skip to content

Commit 8f7df38

Browse files
Fix bdd.as_expr()
There was a mistake in the way complement is computed when going to the then_branch.
1 parent f9edf73 commit 8f7df38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solvers/prop/bdd_expr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ exprt bdd_exprt::as_expr(const bdd_nodet &r, bool complement) const
119119
if(r.else_branch().is_complement() != complement)
120120
{
121121
return and_exprt(
122-
n_expr, as_expr(r.then_branch(), complement != r.is_complement()));
122+
n_expr, as_expr(r.then_branch(), complement != r.then_branch().is_complement()));
123123
}
124124
return or_exprt(
125125
not_exprt(n_expr),
126-
as_expr(r.then_branch(), complement != r.is_complement()));
126+
as_expr(r.then_branch(), complement != r.then_branch().is_complement()));
127127
}
128128
}
129129
else if(r.then_branch().is_constant())

0 commit comments

Comments
 (0)