Skip to content

Commit

Permalink
Remove bug from d9b92f7
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomSerg committed Jun 6, 2024
1 parent efb2854 commit a86cbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpmpy/transformations/decompose_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def decompose_in_tree(lst_of_expr, supported=set(), supported_reified=set(), exp
_toplevel.extend(define) # definitions should be added toplevel
# the `decomposed` expression (and rhs) might contain other global constraints, check it
decomposed = decompose_in_tree(decomposed, supported, supported_reified, expr_store, _toplevel, nested=True)
newlist.extend(decomposed)
newlist.append(all(decomposed))

else: # constants, variables, direct constraints
newlist.append(expr)
Expand Down

0 comments on commit a86cbe9

Please sign in to comment.