Debian Codegraph @

tests/spec/unit/regression/github537.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 options:
5 all_solutions: true
6 expected: !Result
7 status: ALL_SOLUTIONS
8 solution: !SolutionSet
9 - !Solution
10 b: true
11 ***/
12
13 % This model fragment caused an assertion failure.
14 % Implementation would consider all branches for partiallity even though considerations
15 % of the conditions would have already excluded the final branch.
16
17 var bool: b;
18 constraint 1 = if b then
19 1
20 elseif true then
21 let {
22 var 1..2: i = sum (j in 1..2) (j) % invalid domain
23 } in 1
24 else
25 1
26 endif;