Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/ref_is_null.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/ref_is_null.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "ref_is_null.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 44,
13 "action": {
14 "type": "invoke",
15 "field": "funcref",
16 "args": [
17 {
18 "type": "funcref",
19 "value": "null"
20 }
21 ]
22 },
23 "expected": [
24 {
25 "type": "i32",
26 "value": "1"
27 }
28 ]
29 },
30 {
31 "type": "assert_return",
32 "line": 45,
33 "action": {
34 "type": "invoke",
35 "field": "externref",
36 "args": [
37 {
38 "type": "externref",
39 "value": "null"
40 }
41 ]
42 },
43 "expected": [
44 {
45 "type": "i32",
46 "value": "1"
47 }
48 ]
49 },
50 {
51 "type": "assert_return",
52 "line": 46,
53 "action": {
54 "type": "invoke",
55 "field": "ref-null",
56 "args": []
57 },
58 "expected": [
59 {
60 "type": "i32",
61 "value": "1"
62 }
63 ]
64 },
65 {
66 "type": "assert_return",
67 "line": 48,
68 "action": {
69 "type": "invoke",
70 "field": "externref",
71 "args": [
72 {
73 "type": "externref",
74 "value": "1"
75 }
76 ]
77 },
78 "expected": [
79 {
80 "type": "i32",
81 "value": "0"
82 }
83 ]
84 },
85 {
86 "type": "action",
87 "line": 50,
88 "action": {
89 "type": "invoke",
90 "field": "init",
91 "args": [
92 {
93 "type": "externref",
94 "value": "0"
95 }
96 ]
97 }
98 },
99 {
100 "type": "assert_return",
101 "line": 52,
102 "action": {
103 "type": "invoke",
104 "field": "funcref-elem",
105 "args": [
106 {
107 "type": "i32",
108 "value": "0"
109 }
110 ]
111 },
112 "expected": [
113 {
114 "type": "i32",
115 "value": "1"
116 }
117 ]
118 },
119 {
120 "type": "assert_return",
121 "line": 53,
122 "action": {
123 "type": "invoke",
124 "field": "externref-elem",
125 "args": [
126 {
127 "type": "i32",
128 "value": "0"
129 }
130 ]
131 },
132 "expected": [
133 {
134 "type": "i32",
135 "value": "1"
136 }
137 ]
138 },
139 {
140 "type": "assert_return",
141 "line": 54,
142 "action": {
143 "type": "invoke",
144 "field": "ref-elem",
145 "args": [
146 {
147 "type": "i32",
148 "value": "0"
149 }
150 ]
151 },
152 "expected": [
153 {
154 "type": "i32",
155 "value": "1"
156 }
157 ]
158 },
159 {
160 "type": "assert_return",
161 "line": 56,
162 "action": {
163 "type": "invoke",
164 "field": "funcref-elem",
165 "args": [
166 {
167 "type": "i32",
168 "value": "1"
169 }
170 ]
171 },
172 "expected": [
173 {
174 "type": "i32",
175 "value": "0"
176 }
177 ]
178 },
179 {
180 "type": "assert_return",
181 "line": 57,
182 "action": {
183 "type": "invoke",
184 "field": "externref-elem",
185 "args": [
186 {
187 "type": "i32",
188 "value": "1"
189 }
190 ]
191 },
192 "expected": [
193 {
194 "type": "i32",
195 "value": "0"
196 }
197 ]
198 },
199 {
200 "type": "assert_return",
201 "line": 58,
202 "action": {
203 "type": "invoke",
204 "field": "ref-elem",
205 "args": [
206 {
207 "type": "i32",
208 "value": "1"
209 }
210 ]
211 },
212 "expected": [
213 {
214 "type": "i32",
215 "value": "0"
216 }
217 ]
218 },
219 {
220 "type": "action",
221 "line": 60,
222 "action": {
223 "type": "invoke",
224 "field": "deinit",
225 "args": []
226 }
227 },
228 {
229 "type": "assert_return",
230 "line": 62,
231 "action": {
232 "type": "invoke",
233 "field": "funcref-elem",
234 "args": [
235 {
236 "type": "i32",
237 "value": "0"
238 }
239 ]
240 },
241 "expected": [
242 {
243 "type": "i32",
244 "value": "1"
245 }
246 ]
247 },
248 {
249 "type": "assert_return",
250 "line": 63,
251 "action": {
252 "type": "invoke",
253 "field": "externref-elem",
254 "args": [
255 {
256 "type": "i32",
257 "value": "0"
258 }
259 ]
260 },
261 "expected": [
262 {
263 "type": "i32",
264 "value": "1"
265 }
266 ]
267 },
268 {
269 "type": "assert_return",
270 "line": 64,
271 "action": {
272 "type": "invoke",
273 "field": "ref-elem",
274 "args": [
275 {
276 "type": "i32",
277 "value": "0"
278 }
279 ]
280 },
281 "expected": [
282 {
283 "type": "i32",
284 "value": "1"
285 }
286 ]
287 },
288 {
289 "type": "assert_return",
290 "line": 66,
291 "action": {
292 "type": "invoke",
293 "field": "funcref-elem",
294 "args": [
295 {
296 "type": "i32",
297 "value": "1"
298 }
299 ]
300 },
301 "expected": [
302 {
303 "type": "i32",
304 "value": "1"
305 }
306 ]
307 },
308 {
309 "type": "assert_return",
310 "line": 67,
311 "action": {
312 "type": "invoke",
313 "field": "externref-elem",
314 "args": [
315 {
316 "type": "i32",
317 "value": "1"
318 }
319 ]
320 },
321 "expected": [
322 {
323 "type": "i32",
324 "value": "1"
325 }
326 ]
327 },
328 {
329 "type": "assert_return",
330 "line": 68,
331 "action": {
332 "type": "invoke",
333 "field": "ref-elem",
334 "args": [
335 {
336 "type": "i32",
337 "value": "1"
338 }
339 ]
340 },
341 "expected": [
342 {
343 "type": "i32",
344 "value": "1"
345 }
346 ]
347 },
348 {
349 "type": "module",
350 "line": 71,
351 "filename": "ref_is_null.1.wasm",
352 "module_type": "binary"
353 },
354 {
355 "type": "assert_invalid",
356 "line": 79,
357 "filename": "ref_is_null.2.wasm",
358 "module_type": "binary",
359 "text": "type mismatch"
360 },
361 {
362 "type": "assert_invalid",
363 "line": 83,
364 "filename": "ref_is_null.3.wasm",
365 "module_type": "binary",
366 "text": "type mismatch"
367 }
368 ]
369 }