Debian Codegraph @

tests/spec/unit/regression/output_fn_toplevel_var.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected:
5 - !Result
6 solution: !Solution
7 _output_item: '[1][true]'
8 - !Result
9 solution: !Solution
10 _output_item: '[2][false]'
11 ***/
12
13 array[1..1] of var 1..2: x;
14 predicate foo() = x[1] = 1;
15 array [1..1] of var bool: y = [foo()];
16 output [show(x), show(y)];