Debian Codegraph @

test-suite/output/bug7348.v

raw
1 Require Extraction.
2
3 Extraction Language OCaml.
4 Set Extraction KeepSingleton.
5
6 Module Case1.
7
8 Record rec (x : bool) := { f : bool }.
9
10 Definition silly x (b : rec x) :=
11 if x return (if x then bool else unit) then f x b else tt.
12
13 End Case1.
14
15 Module Case2.
16
17 Record rec (x : bool) := { f : bool -> bool }.
18
19 Definition silly x (b : rec x) :=
20 if x return (if x then bool else unit) then f x b false else tt.
21
22 End Case2.
23
24 Extraction TestCompile Case1.silly Case2.silly.
25 Recursive Extraction Case1.silly Case2.silly.