Debian Codegraph @

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

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