File: Extraction_matchs_2413.out

package info (click to toggle)
coq 8.20.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,116 kB
  • sloc: ml: 234,160; sh: 4,301; python: 3,270; ansic: 2,644; makefile: 882; lisp: 172; javascript: 63; xml: 24; sed: 2
file content (52 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
(** val test1 : bool -> bool **)

let test1 b =
  b
(** val test2 : bool -> bool **)

let test2 _ =
  False
(** val wrong_id : 'a1 hole -> 'a2 hole **)

let wrong_id = function
| Hole -> Hole
| Hole2 -> Hole2
(** val test3 : 'a1 option -> 'a1 option **)

let test3 o =
  o
(** val test4 : indu -> indu **)

let test4 = function
| A m -> A (S m)
| x -> x
(** val test5 : indu -> indu **)

let test5 = function
| A m -> A (S m)
| _ -> B
(** val test6 : indu' -> indu' **)

let test6 = function
| A' m -> A' (S m)
| E' -> B'
| F' -> B'
| _ -> C'
(** val test7 : indu -> nat option **)

let test7 = function
| A m -> Some m
| _ -> None
(** val decode_cond_mode :
    (word -> opcode option) -> (word -> 'a1 decoder_result) -> word -> ('a1
    -> opcode -> 'a2) -> 'a2 decoder_result **)

let decode_cond_mode condition f w g =
  match condition w with
  | Some oc ->
    (match f w with
     | DecUndefined -> DecUndefined
     | DecUnpredictable -> DecUnpredictable
     | DecInst i -> DecInst (g i oc)
     | DecError m -> DecError m)
  | None -> DecUndefined