Debian Codegraph @

tests/spec/unit/regression/github_644_c.mzn

raw
1 /***
2 !Test
3 check_against: []
4 expected:
5 - !Result
6 solution: !Solution
7 arr:
8 - 1
9 x: 1
10 status: SATISFIED
11 extra_files: []
12 markers: []
13 name: ''
14 options:
15 all_solutions: false
16 solvers:
17 - gecode
18 type: solve
19 ***/
20
21 var opt 1..1: x;
22 array[1..1] of var 1..1: arr;
23
24 constraint x = count(i in 1..1)(arr[i] = 1);