tests/spec/unit/regression/github_752.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode] |
| 4 | expected: !Result |
| 5 | solution: !Solution |
| 6 | ***/ |
| 7 | |
| 8 | % Regression test for GitHub #752 |
| 9 | |
| 10 | include "globals.mzn"; |
| 11 | |
| 12 | int: N=5; |
| 13 | array[1..5] of var 1..10 : x; |
| 14 | enum STATE = {S1, S2, S3}; |
| 15 | % DFA to define 12*1 |
| 16 | array [STATE,1..2] of opt STATE: trans = [| 1: 2: |
| 17 | | S1: S2, <> |
| 18 | | S2: S3, S2 |
| 19 | | S3: <>, <>|]; |
| 20 | |
| 21 | constraint regular(x, trans, S1, {S3}); |