-
Notifications
You must be signed in to change notification settings - Fork 0
/
linking.html
353 lines (353 loc) · 32.5 KB
/
linking.html
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<a href="./index.html">Home</a><br><h3>Errors: 45</h3>
<h3>Warnings: 12</h3>
<h3>Successes: 75</h3>
<hr>
<h1>linking.wast</h1>
<pre>{"type":"module","line":3,"filename":"linking.0.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"register","line":7,"as":"Mf"}</pre>
<p style="background-color: green">registered</p>
<pre>{"type":"module","line":9,"filename":"linking.1.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_return","line":17,"action":{"type":"invoke","field":"call"},"expected":[{"type":"i32","value":"2"}]}</pre>
<pre>(assert_return (invoke $Mf "call") (i32.const 2))</pre>
<p style="background-color: red">error, wrong result, expected 2, got 3</p>
<pre>{"type":"assert_return","line":18,"action":{"type":"invoke","field":"Mf.call"},"expected":[{"type":"i32","value":"2"}]}</pre>
<pre>(assert_return (invoke $Nf "Mf.call") (i32.const 2))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":19,"action":{"type":"invoke","field":"call"},"expected":[{"type":"i32","value":"3"}]}</pre>
<pre>(assert_return (invoke $Nf "call") (i32.const 3))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":20,"action":{"type":"invoke","field":"call Mf.call"},"expected":[{"type":"i32","value":"2"}]}</pre>
<pre>(assert_return (invoke $Nf "call Mf.call") (i32.const 2))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"module","line":22,"filename":"linking.2.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"register","line":26,"as":"reexport_f"}</pre>
<p style="background-color: green">registered</p>
<pre>{"type":"assert_unlinkable","line":28,"filename":"linking.3.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"assert_unlinkable","line":32,"filename":"linking.4.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"module","line":39,"filename":"linking.5.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"register","line":48,"as":"Mg"}</pre>
<p style="background-color: green">registered</p>
<pre>{"type":"module","line":50,"filename":"linking.6.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_return","line":67,"action":{"type":"get","field":"glob"},"expected":[{"type":"i32","value":"42"}]}</pre>
<pre>(assert_return (get $Mg "glob") (i32.const 42))</pre>
<p style="background-color: red">exception: invoke: unknown action type, get</p>
<pre>{"type":"assert_return","line":68,"action":{"type":"get","field":"Mg.glob"},"expected":[{"type":"i32","value":"42"}]}</pre>
<pre>(assert_return (get $Ng "Mg.glob") (i32.const 42))</pre>
<p style="background-color: red">exception: invoke: unknown action type, get</p>
<pre>{"type":"assert_return","line":69,"action":{"type":"get","field":"glob"},"expected":[{"type":"i32","value":"43"}]}</pre>
<pre>(assert_return (get $Ng "glob") (i32.const 43))</pre>
<p style="background-color: red">exception: invoke: unknown action type, get</p>
<pre>{"type":"assert_return","line":70,"action":{"type":"invoke","field":"get"},"expected":[{"type":"i32","value":"42"}]}</pre>
<pre>(assert_return (invoke $Mg "get") (i32.const 42))</pre>
<p style="background-color: red">error, wrong result, expected 42, got 43</p>
<pre>{"type":"assert_return","line":71,"action":{"type":"invoke","field":"Mg.get"},"expected":[{"type":"i32","value":"42"}]}</pre>
<pre>(assert_return (invoke $Ng "Mg.get") (i32.const 42))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":72,"action":{"type":"invoke","field":"get"},"expected":[{"type":"i32","value":"43"}]}</pre>
<pre>(assert_return (invoke $Ng "get") (i32.const 43))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":74,"action":{"type":"get","field":"mut_glob"},"expected":[{"type":"i32","value":"142"}]}</pre>
<pre>(assert_return (get $Mg "mut_glob") (i32.const 142))</pre>
<p style="background-color: red">exception: invoke: unknown action type, get</p>
<pre>{"type":"assert_return","line":75,"action":{"type":"get","field":"Mg.mut_glob"},"expected":[{"type":"i32","value":"142"}]}</pre>
<pre>(assert_return (get $Ng "Mg.mut_glob") (i32.const 142))</pre>
<p style="background-color: red">exception: invoke: unknown action type, get</p>
<pre>{"type":"assert_return","line":76,"action":{"type":"invoke","field":"get_mut"},"expected":[{"type":"i32","value":"142"}]}</pre>
<pre>(assert_return (invoke $Mg "get_mut") (i32.const 142))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: get_mut</p>
<pre>{"type":"assert_return","line":77,"action":{"type":"invoke","field":"Mg.get_mut"},"expected":[{"type":"i32","value":"142"}]}</pre>
<pre>(assert_return (invoke $Ng "Mg.get_mut") (i32.const 142))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":79,"action":{"type":"invoke","field":"set_mut","args":[{"type":"i32","value":"241"}]}}</pre>
<pre>(assert_return (invoke $Mg "set_mut" (i32.const 241)))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: set_mut</p>
<pre>{"type":"assert_return","line":80,"action":{"type":"get","field":"mut_glob"},"expected":[{"type":"i32","value":"241"}]}</pre>
<pre>(assert_return (get $Mg "mut_glob") (i32.const 241))</pre>
<p style="background-color: red">exception: invoke: unknown action type, get</p>
<pre>{"type":"assert_return","line":81,"action":{"type":"get","field":"Mg.mut_glob"},"expected":[{"type":"i32","value":"241"}]}</pre>
<pre>(assert_return (get $Ng "Mg.mut_glob") (i32.const 241))</pre>
<p style="background-color: red">exception: invoke: unknown action type, get</p>
<pre>{"type":"assert_return","line":82,"action":{"type":"invoke","field":"get_mut"},"expected":[{"type":"i32","value":"241"}]}</pre>
<pre>(assert_return (invoke $Mg "get_mut") (i32.const 241))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: get_mut</p>
<pre>{"type":"assert_return","line":83,"action":{"type":"invoke","field":"Mg.get_mut"},"expected":[{"type":"i32","value":"241"}]}</pre>
<pre>(assert_return (invoke $Ng "Mg.get_mut") (i32.const 241))</pre>
<p style="background-color: red">error, wrong result, expected 241, got 142</p>
<pre>{"type":"assert_unlinkable","line":87,"filename":"linking.7.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"assert_unlinkable","line":91,"filename":"linking.8.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"module","line":96,"filename":"linking.9.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"register","line":102,"as":"Mref_ex"}</pre>
<p style="background-color: green">registered</p>
<pre>{"type":"module","line":104,"filename":"linking.10.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_unlinkable","line":113,"filename":"linking.11.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"assert_unlinkable","line":117,"filename":"linking.12.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"assert_unlinkable","line":123,"filename":"linking.13.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"assert_unlinkable","line":127,"filename":"linking.14.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"module","line":134,"filename":"linking.15.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"register","line":147,"as":"Mt"}</pre>
<p style="background-color: green">registered</p>
<pre>{"type":"module","line":149,"filename":"linking.16.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_return","line":168,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4"}]}</pre>
<pre>(assert_return (invoke $Mt "call" (i32.const 2)) (i32.const 4))</pre>
<p style="background-color: red">error, wrong result, expected 4, got 5</p>
<pre>{"type":"assert_return","line":169,"action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4"}]}</pre>
<pre>(assert_return (invoke $Nt "Mt.call" (i32.const 2)) (i32.const 4))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":170,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"5"}]}</pre>
<pre>(assert_return (invoke $Nt "call" (i32.const 2)) (i32.const 5))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":171,"action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4"}]}</pre>
<pre>(assert_return (invoke $Nt "call Mt.call" (i32.const 2)) (i32.const 4))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_trap","line":173,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Mt "call" (i32.const 1)) "uninitialized element")</pre>
<p style="background-color: red">error, expected trap</p>
<pre>{"type":"assert_trap","line":174,"text":"uninitialized element","action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "Mt.call" (i32.const 1)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_call_indirect: null reference, 0, 1</p>
<pre>{"type":"assert_return","line":175,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"5"}]}</pre>
<pre>(assert_return (invoke $Nt "call" (i32.const 1)) (i32.const 5))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_trap","line":176,"text":"uninitialized element","action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "call Mt.call" (i32.const 1)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_call_indirect: null reference, 0, 1</p>
<pre>{"type":"assert_trap","line":178,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Mt "call" (i32.const 0)) "uninitialized element")</pre>
<p style="background-color: red">error, expected trap</p>
<pre>{"type":"assert_trap","line":179,"text":"uninitialized element","action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "Mt.call" (i32.const 0)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_call_indirect: null reference, 0, 0</p>
<pre>{"type":"assert_return","line":180,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"5"}]}</pre>
<pre>(assert_return (invoke $Nt "call" (i32.const 0)) (i32.const 5))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_trap","line":181,"text":"uninitialized element","action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "call Mt.call" (i32.const 0)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_call_indirect: null reference, 0, 0</p>
<pre>{"type":"assert_trap","line":183,"text":"undefined element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"20"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Mt "call" (i32.const 20)) "undefined element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_memory: table_get, out of bounds</p>
<pre>{"type":"assert_trap","line":184,"text":"undefined element","action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"20"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "Mt.call" (i32.const 20)) "undefined element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_memory: table_get, out of bounds</p>
<pre>{"type":"assert_trap","line":185,"text":"undefined element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"7"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "call" (i32.const 7)) "undefined element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_memory: table_get, out of bounds</p>
<pre>{"type":"assert_trap","line":186,"text":"undefined element","action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"20"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "call Mt.call" (i32.const 20)) "undefined element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_memory: table_get, out of bounds</p>
<pre>{"type":"assert_return","line":188,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4294967292"}]}</pre>
<pre>(assert_return (invoke $Nt "call" (i32.const 3)) (i32.const -4))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_trap","line":189,"text":"indirect call type mismatch","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"4"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "call" (i32.const 4)) "indirect call type mismatch")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_call_indirect type mismatch</p>
<pre>{"type":"module","line":191,"filename":"linking.17.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_return","line":204,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4"}]}</pre>
<pre>(assert_return (invoke $Mt "call" (i32.const 3)) (i32.const 4))</pre>
<p style="background-color: red">exception: instantiate element section, failed to execute instructions: zcl_wasm_memory: table_set, not found, index 0</p>
<pre>{"type":"assert_return","line":205,"action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4"}]}</pre>
<pre>(assert_return (invoke $Nt "Mt.call" (i32.const 3)) (i32.const 4))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: Mt.call</p>
<pre>{"type":"assert_return","line":206,"action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4"}]}</pre>
<pre>(assert_return (invoke $Nt "call Mt.call" (i32.const 3)) (i32.const 4))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: call Mt.call</p>
<pre>{"type":"assert_return","line":207,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4"}]}</pre>
<pre>(assert_return (invoke $Ot "call" (i32.const 3)) (i32.const 4))</pre>
<p style="background-color: red">exception: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_return","line":209,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4294967292"}]}</pre>
<pre>(assert_return (invoke $Mt "call" (i32.const 2)) (i32.const -4))</pre>
<p style="background-color: red">exception: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_return","line":210,"action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4294967292"}]}</pre>
<pre>(assert_return (invoke $Nt "Mt.call" (i32.const 2)) (i32.const -4))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: Mt.call</p>
<pre>{"type":"assert_return","line":211,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"5"}]}</pre>
<pre>(assert_return (invoke $Nt "call" (i32.const 2)) (i32.const 5))</pre>
<p style="background-color: red">exception: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_return","line":212,"action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4294967292"}]}</pre>
<pre>(assert_return (invoke $Nt "call Mt.call" (i32.const 2)) (i32.const -4))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: call Mt.call</p>
<pre>{"type":"assert_return","line":213,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4294967292"}]}</pre>
<pre>(assert_return (invoke $Ot "call" (i32.const 2)) (i32.const -4))</pre>
<p style="background-color: red">exception: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_return","line":215,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"6"}]}</pre>
<pre>(assert_return (invoke $Mt "call" (i32.const 1)) (i32.const 6))</pre>
<p style="background-color: red">exception: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_return","line":216,"action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"6"}]}</pre>
<pre>(assert_return (invoke $Nt "Mt.call" (i32.const 1)) (i32.const 6))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: Mt.call</p>
<pre>{"type":"assert_return","line":217,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"5"}]}</pre>
<pre>(assert_return (invoke $Nt "call" (i32.const 1)) (i32.const 5))</pre>
<p style="background-color: red">exception: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_return","line":218,"action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"6"}]}</pre>
<pre>(assert_return (invoke $Nt "call Mt.call" (i32.const 1)) (i32.const 6))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: call Mt.call</p>
<pre>{"type":"assert_return","line":219,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"6"}]}</pre>
<pre>(assert_return (invoke $Ot "call" (i32.const 1)) (i32.const 6))</pre>
<p style="background-color: red">exception: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_trap","line":221,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Mt "call" (i32.const 0)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_trap","line":222,"text":"uninitialized element","action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "Mt.call" (i32.const 0)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: get_export_by_name, not found: Mt.call</p>
<pre>{"type":"assert_return","line":223,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"5"}]}</pre>
<pre>(assert_return (invoke $Nt "call" (i32.const 0)) (i32.const 5))</pre>
<p style="background-color: red">exception: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_trap","line":224,"text":"uninitialized element","action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Nt "call Mt.call" (i32.const 0)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: get_export_by_name, not found: call Mt.call</p>
<pre>{"type":"assert_trap","line":225,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Ot "call" (i32.const 0)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"assert_trap","line":227,"text":"undefined element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"20"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Ot "call" (i32.const 20)) "undefined element")</pre>
<p style="background-color: green">ok, got error: zcl_wasm_memory: table_get, not found, index 0</p>
<pre>{"type":"module","line":229,"filename":"linking.18.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"module","line":235,"filename":"linking.19.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"register","line":236,"as":"G1"}</pre>
<p style="background-color: green">registered</p>
<pre>{"type":"module","line":237,"filename":"linking.20.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_return","line":241,"action":{"type":"get","field":"g"},"expected":[{"type":"i32","value":"5"}]}</pre>
<pre>(assert_return (get $G2 "g") (i32.const 5))</pre>
<p style="background-color: red">exception: invoke: unknown action type, get</p>
<pre>{"type":"assert_uninstantiable","line":244,"filename":"linking.21.wasm","text":"out of bounds table access"}</pre>
<p style="background-color: green">got error: import section: no imports provided</p>
<pre>{"type":"assert_unlinkable","line":253,"filename":"linking.22.wasm","text":"unknown import"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"assert_trap","line":262,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"7"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Mt "call" (i32.const 7)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: get_export_by_name, not found: call</p>
<pre>{"type":"assert_uninstantiable","line":267,"filename":"linking.23.wasm","text":"out of bounds table access"}</pre>
<p style="background-color: green">got error: import section: no imports provided</p>
<pre>{"type":"assert_return","line":275,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"7"}]},"expected":[{"type":"i32","value":"0"}]}</pre>
<pre>(assert_return (invoke $Mt "call" (i32.const 7)) (i32.const 0))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: call</p>
<pre>{"type":"assert_trap","line":276,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"8"}]},"expected":[{"type":"i32"}]}</pre>
<pre>(assert_trap (invoke $Mt "call" (i32.const 8)) "uninitialized element")</pre>
<p style="background-color: green">ok, got error: get_export_by_name, not found: call</p>
<pre>{"type":"assert_uninstantiable","line":279,"filename":"linking.24.wasm","text":"out of bounds memory access"}</pre>
<p style="background-color: green">got error: import section: no imports provided</p>
<pre>{"type":"assert_return","line":288,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"7"}]},"expected":[{"type":"i32","value":"0"}]}</pre>
<pre>(assert_return (invoke $Mt "call" (i32.const 7)) (i32.const 0))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: call</p>
<pre>{"type":"module","line":291,"filename":"linking.25.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"register","line":295,"as":"Mtable_ex"}</pre>
<p style="background-color: green">registered</p>
<pre>{"type":"module","line":297,"filename":"linking.26.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_unlinkable","line":303,"filename":"linking.27.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"assert_unlinkable","line":307,"filename":"linking.28.wasm","text":"incompatible import type"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"module","line":314,"filename":"linking.29.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"register","line":322,"as":"Mm"}</pre>
<p style="background-color: green">registered</p>
<pre>{"type":"module","line":324,"filename":"linking.30.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_return","line":336,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"2"}]}</pre>
<pre>(assert_return (invoke $Mm "load" (i32.const 12)) (i32.const 2))</pre>
<p style="background-color: red">error, wrong result, expected 2, got 242</p>
<pre>{"type":"assert_return","line":337,"action":{"type":"invoke","field":"Mm.load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"2"}]}</pre>
<pre>(assert_return (invoke $Nm "Mm.load" (i32.const 12)) (i32.const 2))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":338,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"242"}]}</pre>
<pre>(assert_return (invoke $Nm "load" (i32.const 12)) (i32.const 0xf2))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"module","line":340,"filename":"linking.31.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_return","line":349,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"167"}]}</pre>
<pre>(assert_return (invoke $Mm "load" (i32.const 12)) (i32.const 0xa7))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":350,"action":{"type":"invoke","field":"Mm.load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"167"}]}</pre>
<pre>(assert_return (invoke $Nm "Mm.load" (i32.const 12)) (i32.const 0xa7))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: Mm.load</p>
<pre>{"type":"assert_return","line":351,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"242"}]}</pre>
<pre>(assert_return (invoke $Nm "load" (i32.const 12)) (i32.const 0xf2))</pre>
<p style="background-color: red">error, wrong result, expected 242, got 167</p>
<pre>{"type":"assert_return","line":352,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"167"}]}</pre>
<pre>(assert_return (invoke $Om "load" (i32.const 12)) (i32.const 0xa7))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"module","line":354,"filename":"linking.32.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_uninstantiable","line":360,"filename":"linking.33.wasm","text":"out of bounds memory access"}</pre>
<p style="background-color: green">got error: import section: no imports provided</p>
<pre>{"type":"module","line":367,"filename":"linking.34.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"assert_return","line":375,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"1"}]}</pre>
<pre>(assert_return (invoke $Pm "grow" (i32.const 0)) (i32.const 1))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":376,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"1"}]}</pre>
<pre>(assert_return (invoke $Pm "grow" (i32.const 2)) (i32.const 1))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":377,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"3"}]}</pre>
<pre>(assert_return (invoke $Pm "grow" (i32.const 0)) (i32.const 3))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":378,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"3"}]}</pre>
<pre>(assert_return (invoke $Pm "grow" (i32.const 1)) (i32.const 3))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":379,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"4"}]}</pre>
<pre>(assert_return (invoke $Pm "grow" (i32.const 1)) (i32.const 4))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":380,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"5"}]}</pre>
<pre>(assert_return (invoke $Pm "grow" (i32.const 0)) (i32.const 5))</pre>
<p style="background-color: green">ok, result</p>
<pre>{"type":"assert_return","line":381,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"4294967295"}]}</pre>
<pre>(assert_return (invoke $Pm "grow" (i32.const 1)) (i32.const -1))</pre>
<p style="background-color: red">error, wrong result, expected 4294967295, got 5</p>
<pre>{"type":"assert_return","line":382,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"5"}]}</pre>
<pre>(assert_return (invoke $Pm "grow" (i32.const 0)) (i32.const 5))</pre>
<p style="background-color: red">error, wrong result, expected 5, got 6</p>
<pre>{"type":"assert_unlinkable","line":385,"filename":"linking.35.wasm","text":"unknown import"}</pre>
<p style="background-color: yellow">todo, assert_unlinkable</p>
<pre>{"type":"assert_return","line":393,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"0"}]}</pre>
<pre>(assert_return (invoke $Mm "load" (i32.const 0)) (i32.const 0))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: load</p>
<pre>{"type":"assert_uninstantiable","line":398,"filename":"linking.36.wasm","text":"out of bounds memory access"}</pre>
<p style="background-color: green">got error: import section: no imports provided</p>
<pre>{"type":"assert_return","line":406,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"97"}]}</pre>
<pre>(assert_return (invoke $Mm "load" (i32.const 0)) (i32.const 97))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: load</p>
<pre>{"type":"assert_return","line":407,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"327670"}]},"expected":[{"type":"i32","value":"0"}]}</pre>
<pre>(assert_return (invoke $Mm "load" (i32.const 327670)) (i32.const 0))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: load</p>
<pre>{"type":"assert_uninstantiable","line":410,"filename":"linking.37.wasm","text":"out of bounds table access"}</pre>
<p style="background-color: green">got error: import section: no imports provided</p>
<pre>{"type":"assert_return","line":419,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"97"}]}</pre>
<pre>(assert_return (invoke $Mm "load" (i32.const 0)) (i32.const 97))</pre>
<p style="background-color: red">exception: get_export_by_name, not found: load</p>
<pre>{"type":"module","line":422,"filename":"linking.38.wasm"}</pre>
<p style="background-color: green">loaded</p>
<pre>{"type":"register","line":433,"as":"Ms"}</pre>
<p style="background-color: green">registered</p>
<pre>{"type":"assert_uninstantiable","line":436,"filename":"linking.39.wasm","text":"unreachable"}</pre>
<p style="background-color: green">got error: import section: no imports provided</p>
<pre>{"type":"assert_return","line":452,"action":{"type":"invoke","field":"get memory[0]"},"expected":[{"type":"i32","value":"104"}]}</pre>
<pre>(assert_return (invoke $Ms "get memory[0]") (i32.const 104)) ;; 'h'</pre>
<p style="background-color: red">error, wrong result, expected 104, got 0</p>
<pre>{"type":"assert_return","line":453,"action":{"type":"invoke","field":"get table[0]"},"expected":[{"type":"i32","value":"57005"}]}</pre>
<pre>(assert_return (invoke $Ms "get table[0]") (i32.const 0xdead))</pre>
<p style="background-color: red">exception: zcl_wasm_call_indirect: null reference, 0, 0</p>
<p>Generated at 2024-09-05T14:38:17</p>