Skip to content

Commit

Permalink
add missing case
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout4 committed May 17, 2024
1 parent 17073f4 commit cba0e6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpmpy/transformations/negation.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def push_down_negation(lst_of_expr, toplevel=True):
if is_boolexpr(lexpr) and is_boolexpr(rexpr):
newexpr = (lexpr == recurse_negation(rexpr))
newlist.append(newexpr)
else:
newlist.append(expr)

else:
# an Expression, we remain in the positive case
Expand Down

0 comments on commit cba0e6a

Please sign in to comment.