12 (func $return-val (result i32)
13 (return (i32.const 1))
15 (func $ifs (param $x i32) (result i32)
20 (return (i32.const 2))
21 (return (i32.const 3))
26 (return (i32.const 4))
28 (return (i32.const 5))
30 (func $loops (param $x i32)
39 (br_if $top2 (get_local $x))
43 (if (get_local $x) (br $top3))
46 (func $br-out (param $x i32)
48 (call $br-out (i32.const 5))
52 (func $unreachable (param $x i32)
56 (call $unreachable (i32.const 1))
58 (call $unreachable (i32.const 2))
61 (call $unreachable (i32.const 3))
63 (call $unreachable (i32.const 4))
68 (call $unreachable (i32.const 5))
70 (call $unreachable (i32.const 6))
73 (func $empty-blocks (param $x i32)
77 (func $before-and-after (param $x i32)
78 (call $before-and-after (i32.const 1))
80 (call $before-and-after (i32.const 2))
82 (call $before-and-after (i32.const 3))
84 (call $before-and-after (i32.const 4))
85 (br_if $out (get_local $x))
86 (call $before-and-after (i32.const 5))
88 (call $before-and-after (i32.const 6))
90 (call $before-and-after (i32.const 7))
92 (call $before-and-after (i32.const 8))
94 (call $before-and-after (i32.const 9))
95 (br_if $top2 (get_local $x))
96 (call $before-and-after (i32.const 10))
98 (call $before-and-after (i32.const 11))
100 (call $before-and-after (i32.const 12))
102 (call $before-and-after (i32.const 13))
104 (call $before-and-after (i32.const 14))
105 (call $before-and-after (i32.const 15))
109 (call $before-and-after (i32.const 16))
112 (call $before-and-after (i32.const 17))
114 (call $before-and-after (i32.const 18))
116 (call $before-and-after (i32.const 19))
118 (call $before-and-after (i32.const 20))
120 (call $before-and-after (i32.const 21))
123 (call $before-and-after (i32.const 22))
126 (call $before-and-after (i32.const 23))
129 (call $before-and-after (i32.const 24))
132 (call $before-and-after (i32.const 25))
134 (func $switch (param $x i32)
137 (br_table $a $a (get_local $x))
139 (call $switch (i32.const 1))
142 (br_table $b $b $b $c (get_local $x))
144 (call $switch (i32.const 2))
146 (call $switch (i32.const 3))
155 (func $if-br-wat (param $x i32)
167 (br $label$2) ;; waka