(module (type $ft (;0;) (func)) (type $st (;1;) (struct)) (type $at (;2;) (array i8)) (type (;3;) (func (param externref))) (type (;4;) (func (param i32))) (table (;0;) 10 anyref) (export "init" (func 1)) (export "ref_cast_non_null" (func 2)) (export "ref_cast_null" (func 3)) (export "ref_cast_i31" (func 4)) (export "ref_cast_struct" (func 5)) (export "ref_cast_array" (func 6)) (elem (;0;) declare func $f) (func $f (;0;) (type $ft)) (func (;1;) (type 3) (param $x externref) i32.const 0 ref.null any table.set 0 i32.const 1 i32.const 7 ref.i31 table.set 0 i32.const 2 struct.new_default $st table.set 0 i32.const 3 i32.const 0 array.new_default $at table.set 0 i32.const 4 local.get $x any.convert_extern table.set 0 i32.const 5 ref.null i31 table.set 0 i32.const 6 ref.null struct table.set 0 i32.const 7 ref.null none table.set 0 ) (func (;2;) (type 4) (param $i i32) local.get $i table.get 0 ref.as_non_null drop local.get $i table.get 0 ref.cast anyref drop ) (func (;3;) (type 4) (param $i i32) local.get $i table.get 0 ref.cast anyref drop local.get $i table.get 0 ref.cast structref drop local.get $i table.get 0 ref.cast arrayref drop local.get $i table.get 0 ref.cast i31ref drop local.get $i table.get 0 ref.cast nullref drop ) (func (;4;) (type 4) (param $i i32) local.get $i table.get 0 ref.cast (ref i31) drop local.get $i table.get 0 ref.cast i31ref drop ) (func (;5;) (type 4) (param $i i32) local.get $i table.get 0 ref.cast (ref struct) drop local.get $i table.get 0 ref.cast structref drop ) (func (;6;) (type 4) (param $i i32) local.get $i table.get 0 ref.cast (ref array) drop local.get $i table.get 0 ref.cast arrayref drop ) )