Debian Codegraph @

tests/snapshots/testsuite/global.wast/0.print

raw
1 (module
2 (type $check (;0;) (func (param i32 i32) (result i32)))
3 (type (;1;) (func (result i32)))
4 (type (;2;) (func (result i64)))
5 (type (;3;) (func (result externref)))
6 (type (;4;) (func (param i32)))
7 (type (;5;) (func (param i64)))
8 (type (;6;) (func (param externref)))
9 (type (;7;) (func (result f32)))
10 (type (;8;) (func (result f64)))
11 (type (;9;) (func (param f32)))
12 (type (;10;) (func (param f64)))
13 (type (;11;) (func))
14 (type (;12;) (func (param i32) (result i32)))
15 (import "spectest" "global_i32" (global (;0;) i32))
16 (import "spectest" "global_i64" (global (;1;) i64))
17 (table (;0;) 1 1 funcref)
18 (memory (;0;) 1)
19 (global $a (;2;) i32 i32.const -2)
20 (global (;3;) f32 f32.const -0x1.8p+1 (;=-3;))
21 (global (;4;) f64 f64.const -0x1p+2 (;=-4;))
22 (global $b (;5;) i64 i64.const -5)
23 (global $x (;6;) (mut i32) i32.const -12)
24 (global (;7;) (mut f32) f32.const -0x1.ap+3 (;=-13;))
25 (global (;8;) (mut f64) f64.const -0x1.cp+3 (;=-14;))
26 (global $y (;9;) (mut i64) i64.const -15)
27 (global $z1 (;10;) i32 global.get 0)
28 (global $z2 (;11;) i64 global.get 1)
29 (global $r (;12;) externref ref.null extern)
30 (global $mr (;13;) (mut externref) ref.null extern)
31 (global (;14;) funcref ref.null func)
32 (export "get-a" (func 0))
33 (export "get-b" (func 1))
34 (export "get-r" (func 2))
35 (export "get-mr" (func 3))
36 (export "get-x" (func 4))
37 (export "get-y" (func 5))
38 (export "get-z1" (func 6))
39 (export "get-z2" (func 7))
40 (export "set-x" (func 8))
41 (export "set-y" (func 9))
42 (export "set-mr" (func 10))
43 (export "get-3" (func 11))
44 (export "get-4" (func 12))
45 (export "get-7" (func 13))
46 (export "get-8" (func 14))
47 (export "set-7" (func 15))
48 (export "set-8" (func 16))
49 (export "as-select-first" (func 18))
50 (export "as-select-mid" (func 19))
51 (export "as-select-last" (func 20))
52 (export "as-loop-first" (func 21))
53 (export "as-loop-mid" (func 22))
54 (export "as-loop-last" (func 23))
55 (export "as-if-condition" (func 24))
56 (export "as-if-then" (func 25))
57 (export "as-if-else" (func 26))
58 (export "as-br_if-first" (func 27))
59 (export "as-br_if-last" (func 28))
60 (export "as-br_table-first" (func 29))
61 (export "as-br_table-last" (func 30))
62 (export "as-call_indirect-first" (func 32))
63 (export "as-call_indirect-mid" (func 33))
64 (export "as-call_indirect-last" (func 34))
65 (export "as-store-first" (func 35))
66 (export "as-store-last" (func 36))
67 (export "as-load-operand" (func 37))
68 (export "as-memory.grow-value" (func 38))
69 (export "as-call-value" (func 40))
70 (export "as-return-value" (func 41))
71 (export "as-drop-operand" (func 42))
72 (export "as-br-value" (func 43))
73 (export "as-local.set-value" (func 44))
74 (export "as-local.tee-value" (func 45))
75 (export "as-global.set-value" (func 46))
76 (export "as-unary-operand" (func 47))
77 (export "as-binary-operand" (func 48))
78 (export "as-compare-operand" (func 49))
79 (elem (;0;) (table 0) (i32.const 0) func $func)
80 (func (;0;) (type 1) (result i32)
81 global.get $a
82 )
83 (func (;1;) (type 2) (result i64)
84 global.get $b
85 )
86 (func (;2;) (type 3) (result externref)
87 global.get $r
88 )
89 (func (;3;) (type 3) (result externref)
90 global.get $mr
91 )
92 (func (;4;) (type 1) (result i32)
93 global.get $x
94 )
95 (func (;5;) (type 2) (result i64)
96 global.get $y
97 )
98 (func (;6;) (type 1) (result i32)
99 global.get $z1
100 )
101 (func (;7;) (type 2) (result i64)
102 global.get $z2
103 )
104 (func (;8;) (type 4) (param i32)
105 local.get 0
106 global.set $x
107 )
108 (func (;9;) (type 5) (param i64)
109 local.get 0
110 global.set $y
111 )
112 (func (;10;) (type 6) (param externref)
113 local.get 0
114 global.set $mr
115 )
116 (func (;11;) (type 7) (result f32)
117 global.get 3
118 )
119 (func (;12;) (type 8) (result f64)
120 global.get 4
121 )
122 (func (;13;) (type 7) (result f32)
123 global.get 7
124 )
125 (func (;14;) (type 8) (result f64)
126 global.get 8
127 )
128 (func (;15;) (type 9) (param f32)
129 local.get 0
130 global.set 7
131 )
132 (func (;16;) (type 10) (param f64)
133 local.get 0
134 global.set 8
135 )
136 (func $dummy (;17;) (type 11))
137 (func (;18;) (type 1) (result i32)
138 global.get $x
139 i32.const 2
140 i32.const 3
141 select
142 )
143 (func (;19;) (type 1) (result i32)
144 i32.const 2
145 global.get $x
146 i32.const 3
147 select
148 )
149 (func (;20;) (type 1) (result i32)
150 i32.const 2
151 i32.const 3
152 global.get $x
153 select
154 )
155 (func (;21;) (type 1) (result i32)
156 loop (result i32) ;; label = @1
157 global.get $x
158 call $dummy
159 call $dummy
160 end
161 )
162 (func (;22;) (type 1) (result i32)
163 loop (result i32) ;; label = @1
164 call $dummy
165 global.get $x
166 call $dummy
167 end
168 )
169 (func (;23;) (type 1) (result i32)
170 loop (result i32) ;; label = @1
171 call $dummy
172 call $dummy
173 global.get $x
174 end
175 )
176 (func (;24;) (type 1) (result i32)
177 global.get $x
178 if (result i32) ;; label = @1
179 call $dummy
180 i32.const 2
181 else
182 call $dummy
183 i32.const 3
184 end
185 )
186 (func (;25;) (type 1) (result i32)
187 i32.const 1
188 if (result i32) ;; label = @1
189 global.get $x
190 else
191 i32.const 2
192 end
193 )
194 (func (;26;) (type 1) (result i32)
195 i32.const 0
196 if (result i32) ;; label = @1
197 i32.const 2
198 else
199 global.get $x
200 end
201 )
202 (func (;27;) (type 1) (result i32)
203 block (result i32) ;; label = @1
204 global.get $x
205 i32.const 2
206 br_if 0 (;@1;)
207 i32.const 3
208 return
209 end
210 )
211 (func (;28;) (type 1) (result i32)
212 block (result i32) ;; label = @1
213 i32.const 2
214 global.get $x
215 br_if 0 (;@1;)
216 i32.const 3
217 return
218 end
219 )
220 (func (;29;) (type 1) (result i32)
221 block (result i32) ;; label = @1
222 global.get $x
223 i32.const 2
224 br_table 0 (;@1;) 0 (;@1;)
225 end
226 )
227 (func (;30;) (type 1) (result i32)
228 block (result i32) ;; label = @1
229 i32.const 2
230 global.get $x
231 br_table 0 (;@1;) 0 (;@1;)
232 end
233 )
234 (func $func (;31;) (type $check) (param i32 i32) (result i32)
235 local.get 0
236 )
237 (func (;32;) (type 1) (result i32)
238 block (result i32) ;; label = @1
239 global.get $x
240 i32.const 2
241 i32.const 0
242 call_indirect (type $check)
243 end
244 )
245 (func (;33;) (type 1) (result i32)
246 block (result i32) ;; label = @1
247 i32.const 2
248 global.get $x
249 i32.const 0
250 call_indirect (type $check)
251 end
252 )
253 (func (;34;) (type 1) (result i32)
254 block (result i32) ;; label = @1
255 i32.const 2
256 i32.const 0
257 global.get $x
258 call_indirect (type $check)
259 end
260 )
261 (func (;35;) (type 11)
262 global.get $x
263 i32.const 1
264 i32.store
265 )
266 (func (;36;) (type 11)
267 i32.const 0
268 global.get $x
269 i32.store
270 )
271 (func (;37;) (type 1) (result i32)
272 global.get $x
273 i32.load
274 )
275 (func (;38;) (type 1) (result i32)
276 global.get $x
277 memory.grow
278 )
279 (func $f (;39;) (type 12) (param i32) (result i32)
280 local.get 0
281 )
282 (func (;40;) (type 1) (result i32)
283 global.get $x
284 call $f
285 )
286 (func (;41;) (type 1) (result i32)
287 global.get $x
288 return
289 )
290 (func (;42;) (type 11)
291 global.get $x
292 drop
293 )
294 (func (;43;) (type 1) (result i32)
295 block (result i32) ;; label = @1
296 global.get $x
297 br 0 (;@1;)
298 end
299 )
300 (func (;44;) (type 12) (param i32) (result i32)
301 global.get $x
302 local.set 0
303 local.get 0
304 )
305 (func (;45;) (type 12) (param i32) (result i32)
306 global.get $x
307 local.tee 0
308 )
309 (func (;46;) (type 1) (result i32)
310 global.get $x
311 global.set $x
312 global.get $x
313 )
314 (func (;47;) (type 1) (result i32)
315 global.get $x
316 i32.eqz
317 )
318 (func (;48;) (type 1) (result i32)
319 global.get $x
320 global.get $x
321 i32.mul
322 )
323 (func (;49;) (type 1) (result i32)
324 global.get 0
325 i32.const 1
326 i32.gt_u
327 )
328 )