(module (type $a (;0;) (struct)) (type $b (;1;) (struct)) (type $f1 (;2;) (func (param (ref $a)))) (type $f2 (;3;) (func (result (ref $b)))) (type (;4;) (func (param (ref $a)))) (type (;5;) (func (result (ref $a)))) (type (;6;) (func)) (global (;0;) (ref null $a) ref.null $a) (global (;1;) (ref null $b) ref.null $b) (func (;0;) (type $f1) (param (ref $a))) (func (;1;) (type 4) (param (ref $a))) (func (;2;) (type $f1) (param (ref $a))) (func (;3;) (type $f1) (param (ref $a))) (func (;4;) (type 5) (result (ref $a)) unreachable ) (func (;5;) (type 6) (local (ref $a)) ) (func (;6;) (type 6) unreachable unreachable i32.const 0 select (result (ref $a)) block (type $f1) (param (ref $a)) ;; label = @1 unreachable end block (result (ref $b)) ;; label = @1 unreachable end block $f1 (type $f1) (param (ref $a)) unreachable end block $f2 (result (ref $b)) unreachable end loop (type $f1) (param (ref $a)) ;; label = @1 unreachable end loop (result (ref $b)) ;; label = @1 unreachable end loop $f1 (type $f1) (param (ref $a)) unreachable end loop $f2 (result (ref $b)) unreachable end drop if (type $f1) (param (ref $a)) ;; label = @1 unreachable else unreachable end if (result (ref $b)) ;; label = @1 unreachable else unreachable end drop if $f1 (type $f1) (param (ref $a)) unreachable else unreachable end if $f2 (result (ref $b)) unreachable else unreachable end drop ) )