Debian Codegraph @

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

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