Debian Codegraph @

tests/spec/unit/regression/test_bug_array_sum_bounds.mzn

raw
1 /***
2 !Test
3 check_against: []
4 expected:
5 - !Result
6 solution: !Solution
7 C: [0, 0, 0]
8 y: 0
9 status: SATISFIED
10 extra_files: []
11 markers: []
12 name: ''
13 options:
14 all_solutions: false
15 solvers: [gecode]
16 type: solve
17 ***/
18
19 array[1..3] of var 0..5: C;
20 var int: y;
21 constraint y = 3 * sum(C);
22 constraint y <= 100;