Debian Codegraph @

test-suite/bugs/bug_9598.v

raw
1 Module case.
2
3 Inductive pair := K (n1 : nat) (n2 : nat -> nat).
4 Definition snd (p : pair) : nat -> nat := match p with K _ f => f end.
5
6 Definition alias_K a b := K a b.
7
8 Fixpoint rec (x : nat) : nat := match x with 0 => 0 | S x => snd (K 0 rec) x end.
9 Fixpoint rec_ko (x : nat) : nat := match x with 0 => 0 | S x => snd (alias_K 0 rec_ko) x end.
10
11 End case.
12
13 Module fixpoint.
14
15 Inductive pair := K (n1 : nat) (n2 : nat -> nat).
16 Definition snd (p : pair) : nat -> nat := match p with K _ f => f end.
17
18 Definition alias_K a b := K a b.
19
20 Fixpoint rec (x : nat) : nat := match x with 0 => 0 | S x => snd (K 0 rec) x end.
21 Fixpoint rec_ko (x : nat) : nat := match x with 0 => 0 | S x => snd (alias_K 0 rec_ko) x end.
22
23 End fixpoint.
24
25 Module primproj.
26
27 Set Primitive Projections.
28
29 Inductive pair := K { fst : nat; snd : nat -> nat }.
30
31 Definition alias_K a b := K a b.
32
33 Fixpoint rec (x : nat) : nat := match x with 0 => 0 | S x => snd (K 0 rec) x end.
34 Fixpoint rec_ko (x : nat) : nat := match x with 0 => 0 | S x => snd (alias_K 0 rec_ko) x end.
35
36 End primproj.