Debian Codegraph @

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

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