1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
Jip J. Dekker fad1b07018 Squashed 'software/minizinc/' content from commit 4f10c8205
git-subtree-dir: software/minizinc
git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
2021-06-16 14:06:46 +10:00

27 lines
445 B
MiniZinc

/***
!Test
expected:
- !Result
solution: !Solution
x1d1: 3
x1d9: 10
***/
% A regression test for G12 bug #52.
%
array[1..3,1..3] of var int: x;
array[1..9] of var int: x1d = [x[w,h] | w in 1..3, h in 1..3];
var int: x1d1 :: add_to_output = x1d[1];
var int: x1d9 :: add_to_output = x1d[9];
constraint x[1, 1] = 3;
constraint x[3, 3] = 10;
solve satisfy;
output [
"x1d1 = ", show(x1d1), ";\n",
"x1d9 = ", show(x1d9), ";\n"
];