☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
regression
/
test_bug45.mzn
☽
☼
tests/spec/unit/regression/test_bug45.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
1
/***
2
!Test
3
expected: !Result
4
status: SATISFIED
5
solution: !Solution
6
i: 1
7
***/
8
9
var 1..1: i;
10
predicate losseq(array[int] of var int: a) = sum([1 | e in a where e >= 1]) = 1;
11
constraint losseq([0,0,0,1]);
12
solve satisfy;