Debian Codegraph @

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

raw
1 (module
2 (type $t (;0;) (struct))
3 (type (;1;) (func (param (ref any)) (result (ref $t))))
4 (type (;2;) (func (param anyref) (result (ref $t))))
5 (type (;3;) (func (param anyref) (result (ref null $t))))
6 (func (;0;) (type 1) (param (ref any)) (result (ref $t))
7 block (result (ref any)) ;; label = @1
8 local.get 0
9 br_on_cast 1 (ref any) (ref $t)
10 end
11 unreachable
12 )
13 (func (;1;) (type 2) (param anyref) (result (ref $t))
14 block (result anyref) ;; label = @1
15 local.get 0
16 br_on_cast 1 anyref (ref $t)
17 end
18 unreachable
19 )
20 (func (;2;) (type 3) (param anyref) (result (ref null $t))
21 block (result anyref) ;; label = @1
22 local.get 0
23 br_on_cast 1 anyref (ref null $t)
24 end
25 unreachable
26 )
27 )