| 1 |
From Corelib Require Import PrimInt63 PrimArray. |
| 2 |
|
| 3 |
Open Scope array_scope. |
| 4 |
|
| 5 |
Module OneLevel. |
| 6 |
|
| 7 |
Inductive foo : Set := |
| 8 |
C : array foo -> foo. |
| 9 |
|
| 10 |
Fixpoint f1 (x : foo) {struct x} : False := |
| 11 |
match x with |
| 12 |
| C t => f1 (t.[0]) |
| 13 |
end. |
| 14 |
|
| 15 |
Fixpoint f2 (x : foo) {struct x} : False := |
| 16 |
f2 match x with |
| 17 |
| C t => t.[0] |
| 18 |
end. |
| 19 |
|
| 20 |
Fixpoint f3 (x : foo) {struct x} : False := |
| 21 |
match x with |
| 22 |
| C t => f3 (PrimArray.default t) |
| 23 |
end. |
| 24 |
|
| 25 |
End OneLevel. |
| 26 |
|
| 27 |
Module TwoLevels. |
| 28 |
|
| 29 |
Inductive foo : Set := |
| 30 |
C : array (array foo) -> foo. |
| 31 |
|
| 32 |
Fixpoint f1 (x : foo) {struct x} : False := |
| 33 |
match x with |
| 34 |
| C t => f1 (t.[0].[0]) |
| 35 |
end. |
| 36 |
|
| 37 |
Fixpoint f2 (x : foo) {struct x} : False := |
| 38 |
f2 match x with |
| 39 |
| C t => t.[0].[0] |
| 40 |
end. |
| 41 |
|
| 42 |
Fixpoint f3 (x : foo) {struct x} : False := |
| 43 |
match x with |
| 44 |
| C t => f3 (PrimArray.default (PrimArray.default t)) |
| 45 |
end. |
| 46 |
|
| 47 |
End TwoLevels. |