Debian Codegraph @

test-suite/output/Extraction_matchs_2413.out

raw
1 (** val test1 : bool -> bool **)
2
3 let test1 b =
4 b
5 (** val test2 : bool -> bool **)
6
7 let test2 _ =
8 False
9 (** val wrong_id : 'a1 hole -> 'a2 hole **)
10
11 let wrong_id = function
12 | Hole -> Hole
13 | Hole2 -> Hole2
14 (** val test3 : 'a1 option -> 'a1 option **)
15
16 let test3 o =
17 o
18 (** val test4 : indu -> indu **)
19
20 let test4 = function
21 | A m -> A (S m)
22 | x -> x
23 (** val test5 : indu -> indu **)
24
25 let test5 = function
26 | A m -> A (S m)
27 | _ -> B
28 (** val test6 : indu' -> indu' **)
29
30 let test6 = function
31 | A' m -> A' (S m)
32 | E' -> B'
33 | F' -> B'
34 | _ -> C'
35 (** val test7 : indu -> nat option **)
36
37 let test7 = function
38 | A m -> Some m
39 | _ -> None
40 (** val decode_cond_mode :
41 (word -> opcode option) -> (word -> 'a1 decoder_result) -> word -> ('a1
42 -> opcode -> 'a2) -> 'a2 decoder_result **)
43
44 let decode_cond_mode condition f w g =
45 match condition w with
46 | Some oc ->
47 (match f w with
48 | DecUndefined -> DecUndefined
49 | DecUnpredictable -> DecUnpredictable
50 | DecInst i -> DecInst (g i oc)
51 | DecError m -> DecError m)
52 | None -> DecUndefined