Debian Codegraph @

tests/spec/unit/general/struct_flat_cv_path.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 options:
5 keep-paths: true
6 expected: !Result
7 solution: !Solution
8 a: 2
9 b: 1
10 c: [[1, 2], [3, 4]]
11 ***/
12
13 var 2..4: a;
14
15 function int: foo(tuple(int, int): x, tuple(int, int): y) = 1;
16
17 any: b :: output = foo((1, lb(a)), (3, ub(a)));
18 any: c :: output = [(1, lb(a)), (3, ub(a))];
19
20 solve minimize a;