Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/br_on_cast.wast/27.print

raw
1 (module
2 (type $t0 (;0;) (sub (struct)))
3 (type $t1 (;1;) (sub $t0 (struct (field i32))))
4 (type $t1' (;2;) (sub $t0 (struct (field i32))))
5 (type $t2 (;3;) (sub $t1 (struct (field i32) (field i32))))
6 (type $t2' (;4;) (sub $t1' (struct (field i32) (field i32))))
7 (type $t3 (;5;) (sub $t0 (struct (field i32) (field i32))))
8 (type $t0' (;6;) (sub $t0 (struct)))
9 (type $t4 (;7;) (sub $t0' (struct (field i32) (field i32))))
10 (type (;8;) (func))
11 (table (;0;) 20 structref)
12 (export "test-sub" (func 1))
13 (export "test-canon" (func 2))
14 (func $init (;0;) (type 8)
15 i32.const 0
16 struct.new_default $t0
17 table.set 0
18 i32.const 10
19 struct.new_default $t0'
20 table.set 0
21 i32.const 1
22 struct.new_default $t1
23 table.set 0
24 i32.const 11
25 struct.new_default $t1'
26 table.set 0
27 i32.const 2
28 struct.new_default $t2
29 table.set 0
30 i32.const 12
31 struct.new_default $t2'
32 table.set 0
33 i32.const 3
34 struct.new_default $t3
35 table.set 0
36 i32.const 4
37 struct.new_default $t4
38 table.set 0
39 )
40 (func (;1;) (type 8)
41 call $init
42 block $l (result structref)
43 block (result structref) ;; label = @2
44 ref.null struct
45 br_on_cast 0 (;@2;) structref (ref $t0)
46 end
47 drop
48 block (result structref) ;; label = @2
49 i32.const 0
50 table.get 0
51 br_on_cast 0 (;@2;) structref (ref $t0)
52 end
53 drop
54 block (result structref) ;; label = @2
55 i32.const 1
56 table.get 0
57 br_on_cast 0 (;@2;) structref (ref $t0)
58 end
59 drop
60 block (result structref) ;; label = @2
61 i32.const 2
62 table.get 0
63 br_on_cast 0 (;@2;) structref (ref $t0)
64 end
65 drop
66 block (result structref) ;; label = @2
67 i32.const 3
68 table.get 0
69 br_on_cast 0 (;@2;) structref (ref $t0)
70 end
71 drop
72 block (result structref) ;; label = @2
73 i32.const 4
74 table.get 0
75 br_on_cast 0 (;@2;) structref (ref $t0)
76 end
77 drop
78 block (result structref) ;; label = @2
79 ref.null struct
80 br_on_cast 0 (;@2;) structref (ref $t1)
81 end
82 drop
83 block (result structref) ;; label = @2
84 i32.const 1
85 table.get 0
86 br_on_cast 0 (;@2;) structref (ref $t1)
87 end
88 drop
89 block (result structref) ;; label = @2
90 i32.const 2
91 table.get 0
92 br_on_cast 0 (;@2;) structref (ref $t1)
93 end
94 drop
95 block (result structref) ;; label = @2
96 ref.null struct
97 br_on_cast 0 (;@2;) structref (ref $t2)
98 end
99 drop
100 block (result structref) ;; label = @2
101 i32.const 2
102 table.get 0
103 br_on_cast 0 (;@2;) structref (ref $t2)
104 end
105 drop
106 block (result structref) ;; label = @2
107 ref.null struct
108 br_on_cast 0 (;@2;) structref (ref $t3)
109 end
110 drop
111 block (result structref) ;; label = @2
112 i32.const 3
113 table.get 0
114 br_on_cast 0 (;@2;) structref (ref $t3)
115 end
116 drop
117 block (result structref) ;; label = @2
118 ref.null struct
119 br_on_cast 0 (;@2;) structref (ref $t4)
120 end
121 drop
122 block (result structref) ;; label = @2
123 i32.const 4
124 table.get 0
125 br_on_cast 0 (;@2;) structref (ref $t4)
126 end
127 drop
128 i32.const 0
129 table.get 0
130 br_on_cast $l anyref (ref $t1)
131 i32.const 3
132 table.get 0
133 br_on_cast $l anyref (ref $t1)
134 i32.const 4
135 table.get 0
136 br_on_cast $l anyref (ref $t1)
137 i32.const 0
138 table.get 0
139 br_on_cast $l anyref (ref $t2)
140 i32.const 1
141 table.get 0
142 br_on_cast $l anyref (ref $t2)
143 i32.const 3
144 table.get 0
145 br_on_cast $l anyref (ref $t2)
146 i32.const 4
147 table.get 0
148 br_on_cast $l anyref (ref $t2)
149 i32.const 0
150 table.get 0
151 br_on_cast $l anyref (ref $t3)
152 i32.const 1
153 table.get 0
154 br_on_cast $l anyref (ref $t3)
155 i32.const 2
156 table.get 0
157 br_on_cast $l anyref (ref $t3)
158 i32.const 4
159 table.get 0
160 br_on_cast $l anyref (ref $t3)
161 i32.const 0
162 table.get 0
163 br_on_cast $l anyref (ref $t4)
164 i32.const 1
165 table.get 0
166 br_on_cast $l anyref (ref $t4)
167 i32.const 2
168 table.get 0
169 br_on_cast $l anyref (ref $t4)
170 i32.const 3
171 table.get 0
172 br_on_cast $l anyref (ref $t4)
173 return
174 end
175 unreachable
176 )
177 (func (;2;) (type 8)
178 call $init
179 block $l
180 block (result structref) ;; label = @2
181 i32.const 0
182 table.get 0
183 br_on_cast 0 (;@2;) structref (ref $t0')
184 end
185 drop
186 block (result structref) ;; label = @2
187 i32.const 1
188 table.get 0
189 br_on_cast 0 (;@2;) structref (ref $t0')
190 end
191 drop
192 block (result structref) ;; label = @2
193 i32.const 2
194 table.get 0
195 br_on_cast 0 (;@2;) structref (ref $t0')
196 end
197 drop
198 block (result structref) ;; label = @2
199 i32.const 3
200 table.get 0
201 br_on_cast 0 (;@2;) structref (ref $t0')
202 end
203 drop
204 block (result structref) ;; label = @2
205 i32.const 4
206 table.get 0
207 br_on_cast 0 (;@2;) structref (ref $t0')
208 end
209 drop
210 block (result structref) ;; label = @2
211 i32.const 10
212 table.get 0
213 br_on_cast 0 (;@2;) structref (ref $t0)
214 end
215 drop
216 block (result structref) ;; label = @2
217 i32.const 11
218 table.get 0
219 br_on_cast 0 (;@2;) structref (ref $t0)
220 end
221 drop
222 block (result structref) ;; label = @2
223 i32.const 12
224 table.get 0
225 br_on_cast 0 (;@2;) structref (ref $t0)
226 end
227 drop
228 block (result structref) ;; label = @2
229 i32.const 1
230 table.get 0
231 br_on_cast 0 (;@2;) structref (ref $t1')
232 end
233 drop
234 block (result structref) ;; label = @2
235 i32.const 2
236 table.get 0
237 br_on_cast 0 (;@2;) structref (ref $t1')
238 end
239 drop
240 block (result structref) ;; label = @2
241 i32.const 11
242 table.get 0
243 br_on_cast 0 (;@2;) structref (ref $t1)
244 end
245 drop
246 block (result structref) ;; label = @2
247 i32.const 12
248 table.get 0
249 br_on_cast 0 (;@2;) structref (ref $t1)
250 end
251 drop
252 block (result structref) ;; label = @2
253 i32.const 2
254 table.get 0
255 br_on_cast 0 (;@2;) structref (ref $t2')
256 end
257 drop
258 block (result structref) ;; label = @2
259 i32.const 12
260 table.get 0
261 br_on_cast 0 (;@2;) structref (ref $t2)
262 end
263 drop
264 return
265 end
266 unreachable
267 )
268 )