Debian Codegraph @

test-suite/output/bug7348.out

raw
1 Extracted code successfully compiled
2
3 type __ = Obj.t
4
5 type unit0 =
6 | Tt
7
8 type bool =
9 | True
10 | False
11
12 module Case1 =
13 struct
14 type coq_rec = { f : bool }
15
16 (** val f : bool -> coq_rec -> bool **)
17
18 let f _ r =
19 r.f
20
21 (** val silly : bool -> coq_rec -> __ **)
22
23 let silly x b =
24 match x with
25 | True -> Obj.magic b.f
26 | False -> Obj.magic Tt
27 end
28
29 module Case2 =
30 struct
31 type coq_rec = { f : (bool -> bool) }
32
33 (** val f : bool -> coq_rec -> bool -> bool **)
34
35 let f _ r =
36 r.f
37
38 (** val silly : bool -> coq_rec -> __ **)
39
40 let silly x b =
41 match x with
42 | True -> Obj.magic b.f False
43 | False -> Obj.magic Tt
44 end
45