Debian Codegraph @

crates/wasm-compose/tests/compositions/complex/b.wat

raw
1 (component
2 (type $i1
3 (instance
4 (type $f1 (func))
5 (type $f2 (func (param "x" s8)))
6 (type $f3 (func (param "x" u8)))
7 (type $f4 (func (param "x" s16)))
8 (type $f5 (func (param "x" u16)))
9 (type $f6 (func (param "x" s32)))
10 (type $f7 (func (param "x" u32)))
11 (type $f8 (func (param "x" s64)))
12 (type $f9 (func (param "x" u64)))
13 (type $f10 (func (param "x" f32)))
14 (type $f11 (func (param "x" f64)))
15 (type $f12 (func (param "x" bool)))
16 (type $f13 (func (param "x" string)))
17 (export "a" (func (type $f1)))
18 (export "b" (func (type $f2)))
19 (export "c" (func (type $f3)))
20 (export "d" (func (type $f4)))
21 (export "e" (func (type $f5)))
22 (export "f" (func (type $f6)))
23 (export "g" (func (type $f7)))
24 (export "h" (func (type $f8)))
25 (export "i" (func (type $f9)))
26 (export "j" (func (type $f10)))
27 (export "k" (func (type $f11)))
28 (export "l" (func (type $f12)))
29 (export "m" (func (type $f13)))
30 (type $t1' (record (field "a" s8) (field "b" u8) (field "c" s16) (field "d" u16) (field "e" s32) (field "f" u32) (field "g" s64) (field "h" u64) (field "i" f32) (field "j" f64) (field "k" bool) (field "l" string)))
31 (export "record1" (type $t1 (eq $t1')))
32 (type $f14 (func (param "x" $t1)))
33 (export "n" (func (type $f14)))
34 (type $t2 (list $t1))
35 (type $f15 (func (param "x" $t2)))
36 (export "o" (func (type $f15)))
37 (type $t3 (tuple $t1 string))
38 (type $f16 (func (param "x" $t3)))
39 (export "p" (func (type $f16)))
40 (type $t4' (flags "a" "b" "c"))
41 (export "flags1" (type $t4 (eq $t4')))
42 (type $f17 (func (param "x" $t4)))
43 (export "q" (func (type $f17)))
44 (type $t5' (enum "a" "b" "c"))
45 (export "enum1" (type $t5 (eq $t5')))
46 (type $f18 (func (param "x" $t5)))
47 (export "r" (func (type $f18)))
48 (type $t6' (option $t1))
49 (export "option1" (type $t6 (eq $t6')))
50 (type $f19 (func (param "x" $t6)))
51 (export "s" (func (type $f19)))
52 (type $t7' (variant (case "a" s8) (case "b" u8) (case "c" s16) (case "d" u16) (case "e" s32) (case "f" u32) (case "g" s64) (case "h" u64) (case "i" f32) (case "j" f64) (case "k" bool) (case "l" string) (case "m" $t1)))
53 (export "variant1" (type $t7 (eq $t7')))
54 (type $t8 (option $t7))
55 (type $f20 (func (param "x" $t8)))
56 (export "t" (func (type $f20)))
57 (type $t9 (result $t1 (error string)))
58 (type $f21 (func (result $t9)))
59 (export "u" (func (type $f21)))
60 )
61 )
62 (type $f22 (func (param "x" string) (result string)))
63 (import "a" (instance $i1 (type $i1)))
64 (core module $m0
65 (import "a" "m" (func (param i32 i32)))
66 (func $m (param i32 i32) (result i32) unreachable)
67 (func $canonical_abi_realloc (param i32 i32 i32 i32) (result i32) unreachable)
68 (memory 0)
69 (export "memory" (memory 0))
70 (export "m" (func $m))
71 (export "canonical_abi_realloc" (func $canonical_abi_realloc))
72 )
73 (core module $m1
74 (type (func (param i32 i32)))
75 (type (func (param i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32)))
76 (type (func (param i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32 i32 i32)))
77 (type (func (param i32 i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32)))
78 (type (func (param i32 i32 i64 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32)))
79 (type (func (param i32)))
80 (func (type 0) (param i32 i32)
81 local.get 0
82 local.get 1
83 i32.const 0
84 call_indirect (type 0)
85 )
86 (func (type 1) (param i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32)
87 local.get 0
88 local.get 1
89 local.get 2
90 local.get 3
91 local.get 4
92 local.get 5
93 local.get 6
94 local.get 7
95 local.get 8
96 local.get 9
97 local.get 10
98 local.get 11
99 local.get 12
100 i32.const 1
101 call_indirect (type 1)
102 )
103 (func (type 0) (param i32 i32)
104 local.get 0
105 local.get 1
106 i32.const 2
107 call_indirect (type 0)
108 )
109 (func (type 2) (param i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32 i32 i32)
110 local.get 0
111 local.get 1
112 local.get 2
113 local.get 3
114 local.get 4
115 local.get 5
116 local.get 6
117 local.get 7
118 local.get 8
119 local.get 9
120 local.get 10
121 local.get 11
122 local.get 12
123 local.get 13
124 local.get 14
125 i32.const 3
126 call_indirect (type 2)
127 )
128 (func (type 3) (param i32 i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32)
129 local.get 0
130 local.get 1
131 local.get 2
132 local.get 3
133 local.get 4
134 local.get 5
135 local.get 6
136 local.get 7
137 local.get 8
138 local.get 9
139 local.get 10
140 local.get 11
141 local.get 12
142 local.get 13
143 i32.const 4
144 call_indirect (type 3)
145 )
146 (func (type 4) (param i32 i32 i64 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32)
147 local.get 0
148 local.get 1
149 local.get 2
150 local.get 3
151 local.get 4
152 local.get 5
153 local.get 6
154 local.get 7
155 local.get 8
156 local.get 9
157 local.get 10
158 local.get 11
159 local.get 12
160 local.get 13
161 local.get 14
162 i32.const 5
163 call_indirect (type 4)
164 )
165 (func (type 5) (param i32)
166 local.get 0
167 i32.const 6
168 call_indirect (type 5)
169 )
170 (table 7 7 funcref)
171 (export "0" (func 0))
172 (export "1" (func 1))
173 (export "2" (func 2))
174 (export "3" (func 3))
175 (export "4" (func 4))
176 (export "5" (func 5))
177 (export "6" (func 6))
178 (export "$imports" (table 0))
179 )
180 (core module $m2
181 (type (func (param i32 i32)))
182 (type (func (param i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32)))
183 (type (func (param i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32 i32 i32)))
184 (type (func (param i32 i32 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32)))
185 (type (func (param i32 i32 i64 i32 i32 i32 i32 i32 i64 i64 f32 f64 i32 i32 i32)))
186 (type (func (param i32)))
187 (import "" "0" (func (type 0)))
188 (import "" "1" (func (type 1)))
189 (import "" "2" (func (type 0)))
190 (import "" "3" (func (type 2)))
191 (import "" "4" (func (type 3)))
192 (import "" "5" (func (type 4)))
193 (import "" "6" (func (type 5)))
194 (import "" "$imports" (table 7 7 funcref))
195 (elem (i32.const 0) func 0 1 2 3 4 5 6)
196 )
197 (core instance $m1 (instantiate $m1))
198 (core func $a (canon lower (func $i1 "a")))
199 (core func $b (canon lower (func $i1 "b")))
200 (core func $c (canon lower (func $i1 "c")))
201 (core func $d (canon lower (func $i1 "d")))
202 (core func $e (canon lower (func $i1 "e")))
203 (core func $f (canon lower (func $i1 "f")))
204 (core func $g (canon lower (func $i1 "g")))
205 (core func $h (canon lower (func $i1 "h")))
206 (core func $i (canon lower (func $i1 "i")))
207 (core func $j (canon lower (func $i1 "j")))
208 (core func $k (canon lower (func $i1 "k")))
209 (core func $l (canon lower (func $i1 "l")))
210 (core func $q (canon lower (func $i1 "q")))
211 (core func $r (canon lower (func $i1 "r")))
212 (core instance $m0 (instantiate $m0
213 (with "a" (instance
214 (export "m" (func $m1 "0"))
215 (export "n" (func $m1 "1"))
216 (export "o" (func $m1 "2"))
217 (export "p" (func $m1 "3"))
218 (export "s" (func $m1 "4"))
219 (export "t" (func $m1 "5"))
220 (export "u" (func $m1 "6"))
221 (export "a" (func $a))
222 (export "b" (func $b))
223 (export "c" (func $c))
224 (export "d" (func $d))
225 (export "e" (func $e))
226 (export "f" (func $f))
227 (export "g" (func $g))
228 (export "h" (func $h))
229 (export "i" (func $i))
230 (export "j" (func $j))
231 (export "k" (func $k))
232 (export "l" (func $l))
233 (export "q" (func $q))
234 (export "r" (func $r))
235 ))
236 )
237 )
238 (alias core export $m0 "memory" (core memory $m))
239 (alias core export $m0 "canonical_abi_realloc" (core func $realloc))
240 (alias core export $m1 "$imports" (core table $t))
241 (core func (canon lower (func $i1 "m") (memory $m) (realloc $realloc) string-encoding=utf8))
242 (core func (canon lower (func $i1 "n") (memory $m) (realloc $realloc) string-encoding=utf8))
243 (core func (canon lower (func $i1 "o") (memory $m) (realloc $realloc) string-encoding=utf8))
244 (core func (canon lower (func $i1 "p") (memory $m) (realloc $realloc) string-encoding=utf8))
245 (core func (canon lower (func $i1 "s") (memory $m) (realloc $realloc) string-encoding=utf8))
246 (core func (canon lower (func $i1 "t") (memory $m) (realloc $realloc) string-encoding=utf8))
247 (core func (canon lower (func $i1 "u") (memory $m) (realloc $realloc) string-encoding=utf8))
248 (core instance (instantiate $m2
249 (with "" (instance
250 (export "$imports" (table $t))
251 (export "0" (func 22))
252 (export "1" (func 23))
253 (export "2" (func 24))
254 (export "3" (func 25))
255 (export "4" (func 26))
256 (export "5" (func 27))
257 (export "6" (func 28))
258 ))
259 ))
260 (func $m (type $f22)
261 (canon lift (core func $m0 "m") (memory $m) (realloc $realloc) string-encoding=utf8)
262 )
263 (instance $x (export "m" (func $m)))
264 (export "x" (instance $x))
265 )