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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
(* SPDX-License-Identifier: AGPL-3.0-or-later *)
(* Copyright © 2021-2026 OCamlPro *)
(* Written by the Owi programmers *)

module type T = sig
  type i32

  type i64

  type f32

  type f64

  type v128

  type boolean

  module Boolean : Boolean_intf.T with type t := boolean

  module I32 :
    I32_intf.T
      with type t := i32
       and type boolean := boolean
       and type f32 := f32
       and type f64 := f64
       and type i64 := i64

  module I64 :
    I64_intf.T
      with type t := i64
       and type boolean := boolean
       and type i32 := i32
       and type f32 := f32
       and type f64 := f64

  module F32 :
    F32_intf.T
      with type t := f32
       and type boolean := boolean
       and type i32 := i32
       and type i64 := i64
       and type f64 := f64

  module F64 :
    F64_intf.T
      with type t := f64
       and type boolean := boolean
       and type f32 := f32
       and type i32 := i32
       and type i64 := i64

  module V128 :
    V128_intf.T
      with type t := v128
       and type boolean := boolean
       and type i32 := i32
       and type i64 := i64
       and type f32 := f32
       and type f64 := f64

  module Ref : Ref_intf.T with type i32 = i32

  type t =
    | I32 of i32
    | I64 of i64
    | F32 of f32
    | F64 of f64
    | V128 of v128
    | Ref of t Ref.t

  val pp : t Fmt.t

  val of_script_const : ty:int Type.Id.t -> Wast.const -> t

  val equal_script_result : ty:int Type.Id.t -> Wast.result -> t -> bool
end