Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/br_on_cast_fail.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 ref.null struct
44 br_on_cast_fail $l structref (ref null $t0)
45 i32.const 0
46 table.get 0
47 br_on_cast_fail $l structref (ref null $t0)
48 i32.const 1
49 table.get 0
50 br_on_cast_fail $l structref (ref null $t0)
51 i32.const 2
52 table.get 0
53 br_on_cast_fail $l structref (ref null $t0)
54 i32.const 3
55 table.get 0
56 br_on_cast_fail $l structref (ref null $t0)
57 i32.const 4
58 table.get 0
59 br_on_cast_fail $l structref (ref null $t0)
60 i32.const 0
61 table.get 0
62 br_on_cast_fail $l structref (ref $t0)
63 i32.const 1
64 table.get 0
65 br_on_cast_fail $l structref (ref $t0)
66 i32.const 2
67 table.get 0
68 br_on_cast_fail $l structref (ref $t0)
69 i32.const 3
70 table.get 0
71 br_on_cast_fail $l structref (ref $t0)
72 i32.const 4
73 table.get 0
74 br_on_cast_fail $l structref (ref $t0)
75 ref.null struct
76 br_on_cast_fail $l structref (ref null $t1)
77 i32.const 1
78 table.get 0
79 br_on_cast_fail $l structref (ref null $t1)
80 i32.const 2
81 table.get 0
82 br_on_cast_fail $l structref (ref null $t1)
83 i32.const 1
84 table.get 0
85 br_on_cast_fail $l structref (ref $t1)
86 i32.const 2
87 table.get 0
88 br_on_cast_fail $l structref (ref $t1)
89 ref.null struct
90 br_on_cast_fail $l structref (ref null $t2)
91 i32.const 2
92 table.get 0
93 br_on_cast_fail $l structref (ref null $t2)
94 i32.const 2
95 table.get 0
96 br_on_cast_fail $l structref (ref $t2)
97 ref.null struct
98 br_on_cast_fail $l structref (ref null $t3)
99 i32.const 3
100 table.get 0
101 br_on_cast_fail $l structref (ref null $t3)
102 i32.const 3
103 table.get 0
104 br_on_cast_fail $l structref (ref $t3)
105 ref.null struct
106 br_on_cast_fail $l structref (ref null $t4)
107 i32.const 4
108 table.get 0
109 br_on_cast_fail $l structref (ref null $t4)
110 i32.const 4
111 table.get 0
112 br_on_cast_fail $l structref (ref $t4)
113 block (result structref) ;; label = @2
114 ref.null struct
115 br_on_cast_fail 0 (;@2;) structref (ref $t0)
116 end
117 drop
118 block (result structref) ;; label = @2
119 ref.null struct
120 br_on_cast_fail 0 (;@2;) structref (ref $t1)
121 end
122 drop
123 block (result structref) ;; label = @2
124 i32.const 0
125 table.get 0
126 br_on_cast_fail 0 (;@2;) structref (ref $t1)
127 end
128 drop
129 block (result structref) ;; label = @2
130 i32.const 3
131 table.get 0
132 br_on_cast_fail 0 (;@2;) structref (ref $t1)
133 end
134 drop
135 block (result structref) ;; label = @2
136 i32.const 4
137 table.get 0
138 br_on_cast_fail 0 (;@2;) structref (ref $t1)
139 end
140 drop
141 block (result structref) ;; label = @2
142 ref.null struct
143 br_on_cast_fail 0 (;@2;) structref (ref $t2)
144 end
145 drop
146 block (result structref) ;; label = @2
147 i32.const 0
148 table.get 0
149 br_on_cast_fail 0 (;@2;) structref (ref $t2)
150 end
151 drop
152 block (result structref) ;; label = @2
153 i32.const 1
154 table.get 0
155 br_on_cast_fail 0 (;@2;) structref (ref $t2)
156 end
157 drop
158 block (result structref) ;; label = @2
159 i32.const 3
160 table.get 0
161 br_on_cast_fail 0 (;@2;) structref (ref $t2)
162 end
163 drop
164 block (result structref) ;; label = @2
165 i32.const 4
166 table.get 0
167 br_on_cast_fail 0 (;@2;) structref (ref $t2)
168 end
169 drop
170 block (result structref) ;; label = @2
171 ref.null struct
172 br_on_cast_fail 0 (;@2;) structref (ref $t3)
173 end
174 drop
175 block (result structref) ;; label = @2
176 i32.const 0
177 table.get 0
178 br_on_cast_fail 0 (;@2;) structref (ref $t3)
179 end
180 drop
181 block (result structref) ;; label = @2
182 i32.const 1
183 table.get 0
184 br_on_cast_fail 0 (;@2;) structref (ref $t3)
185 end
186 drop
187 block (result structref) ;; label = @2
188 i32.const 2
189 table.get 0
190 br_on_cast_fail 0 (;@2;) structref (ref $t3)
191 end
192 drop
193 block (result structref) ;; label = @2
194 i32.const 4
195 table.get 0
196 br_on_cast_fail 0 (;@2;) structref (ref $t3)
197 end
198 drop
199 block (result structref) ;; label = @2
200 ref.null struct
201 br_on_cast_fail 0 (;@2;) structref (ref $t4)
202 end
203 drop
204 block (result structref) ;; label = @2
205 i32.const 0
206 table.get 0
207 br_on_cast_fail 0 (;@2;) structref (ref $t4)
208 end
209 drop
210 block (result structref) ;; label = @2
211 i32.const 1
212 table.get 0
213 br_on_cast_fail 0 (;@2;) structref (ref $t4)
214 end
215 drop
216 block (result structref) ;; label = @2
217 i32.const 2
218 table.get 0
219 br_on_cast_fail 0 (;@2;) structref (ref $t4)
220 end
221 drop
222 block (result structref) ;; label = @2
223 i32.const 3
224 table.get 0
225 br_on_cast_fail 0 (;@2;) structref (ref $t4)
226 end
227 drop
228 return
229 end
230 unreachable
231 )
232 (func (;2;) (type 8)
233 call $init
234 block $l (result structref)
235 i32.const 0
236 table.get 0
237 br_on_cast_fail $l structref (ref $t0)
238 i32.const 1
239 table.get 0
240 br_on_cast_fail $l structref (ref $t0)
241 i32.const 2
242 table.get 0
243 br_on_cast_fail $l structref (ref $t0)
244 i32.const 3
245 table.get 0
246 br_on_cast_fail $l structref (ref $t0)
247 i32.const 4
248 table.get 0
249 br_on_cast_fail $l structref (ref $t0)
250 i32.const 10
251 table.get 0
252 br_on_cast_fail $l structref (ref $t0)
253 i32.const 11
254 table.get 0
255 br_on_cast_fail $l structref (ref $t0)
256 i32.const 12
257 table.get 0
258 br_on_cast_fail $l structref (ref $t0)
259 i32.const 1
260 table.get 0
261 br_on_cast_fail $l structref (ref $t1')
262 i32.const 2
263 table.get 0
264 br_on_cast_fail $l structref (ref $t1')
265 i32.const 11
266 table.get 0
267 br_on_cast_fail $l structref (ref $t1)
268 i32.const 12
269 table.get 0
270 br_on_cast_fail $l structref (ref $t1)
271 i32.const 2
272 table.get 0
273 br_on_cast_fail $l structref (ref $t2')
274 i32.const 12
275 table.get 0
276 br_on_cast_fail $l structref (ref $t2)
277 return
278 end
279 unreachable
280 )
281 )