Debian Codegraph @

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

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