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.

24 lines
368 B
MiniZinc

/***
!Test
expected:
- !Result
solution: !Solution
x: [false, true]
y: 0
- !Result
solution: !Solution
x: [false, false]
y: 0
***/
% Test for bug #337 but with mod rather than div.
array[1..2] of var bool: x;
var 0..0: y;
constraint not(x[1 mod y]);
solve satisfy;
output [
"x = array1d(1..2, ", show(x), ";\n",
"y = ", show(y), ";\n"
];