Debian Codegraph @

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

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