| 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 |
ref.null struct |
| 43 |
ref.cast (ref null $t0) |
| 44 |
drop |
| 45 |
i32.const 0 |
| 46 |
table.get 0 |
| 47 |
ref.cast (ref null $t0) |
| 48 |
drop |
| 49 |
i32.const 1 |
| 50 |
table.get 0 |
| 51 |
ref.cast (ref null $t0) |
| 52 |
drop |
| 53 |
i32.const 2 |
| 54 |
table.get 0 |
| 55 |
ref.cast (ref null $t0) |
| 56 |
drop |
| 57 |
i32.const 3 |
| 58 |
table.get 0 |
| 59 |
ref.cast (ref null $t0) |
| 60 |
drop |
| 61 |
i32.const 4 |
| 62 |
table.get 0 |
| 63 |
ref.cast (ref null $t0) |
| 64 |
drop |
| 65 |
ref.null struct |
| 66 |
ref.cast (ref null $t0) |
| 67 |
drop |
| 68 |
i32.const 1 |
| 69 |
table.get 0 |
| 70 |
ref.cast (ref null $t1) |
| 71 |
drop |
| 72 |
i32.const 2 |
| 73 |
table.get 0 |
| 74 |
ref.cast (ref null $t1) |
| 75 |
drop |
| 76 |
ref.null struct |
| 77 |
ref.cast (ref null $t0) |
| 78 |
drop |
| 79 |
i32.const 2 |
| 80 |
table.get 0 |
| 81 |
ref.cast (ref null $t2) |
| 82 |
drop |
| 83 |
ref.null struct |
| 84 |
ref.cast (ref null $t0) |
| 85 |
drop |
| 86 |
i32.const 3 |
| 87 |
table.get 0 |
| 88 |
ref.cast (ref null $t3) |
| 89 |
drop |
| 90 |
i32.const 4 |
| 91 |
table.get 0 |
| 92 |
ref.cast (ref null $t4) |
| 93 |
drop |
| 94 |
i32.const 0 |
| 95 |
table.get 0 |
| 96 |
ref.cast (ref $t0) |
| 97 |
drop |
| 98 |
i32.const 1 |
| 99 |
table.get 0 |
| 100 |
ref.cast (ref $t0) |
| 101 |
drop |
| 102 |
i32.const 2 |
| 103 |
table.get 0 |
| 104 |
ref.cast (ref $t0) |
| 105 |
drop |
| 106 |
i32.const 3 |
| 107 |
table.get 0 |
| 108 |
ref.cast (ref $t0) |
| 109 |
drop |
| 110 |
i32.const 4 |
| 111 |
table.get 0 |
| 112 |
ref.cast (ref $t0) |
| 113 |
drop |
| 114 |
i32.const 1 |
| 115 |
table.get 0 |
| 116 |
ref.cast (ref $t1) |
| 117 |
drop |
| 118 |
i32.const 2 |
| 119 |
table.get 0 |
| 120 |
ref.cast (ref $t1) |
| 121 |
drop |
| 122 |
i32.const 2 |
| 123 |
table.get 0 |
| 124 |
ref.cast (ref $t2) |
| 125 |
drop |
| 126 |
i32.const 3 |
| 127 |
table.get 0 |
| 128 |
ref.cast (ref $t3) |
| 129 |
drop |
| 130 |
i32.const 4 |
| 131 |
table.get 0 |
| 132 |
ref.cast (ref $t4) |
| 133 |
drop |
| 134 |
) |
| 135 |
(func (;2;) (type 8) |
| 136 |
call $init |
| 137 |
i32.const 0 |
| 138 |
table.get 0 |
| 139 |
ref.cast (ref $t0) |
| 140 |
drop |
| 141 |
i32.const 1 |
| 142 |
table.get 0 |
| 143 |
ref.cast (ref $t0) |
| 144 |
drop |
| 145 |
i32.const 2 |
| 146 |
table.get 0 |
| 147 |
ref.cast (ref $t0) |
| 148 |
drop |
| 149 |
i32.const 3 |
| 150 |
table.get 0 |
| 151 |
ref.cast (ref $t0) |
| 152 |
drop |
| 153 |
i32.const 4 |
| 154 |
table.get 0 |
| 155 |
ref.cast (ref $t0) |
| 156 |
drop |
| 157 |
i32.const 10 |
| 158 |
table.get 0 |
| 159 |
ref.cast (ref $t0) |
| 160 |
drop |
| 161 |
i32.const 11 |
| 162 |
table.get 0 |
| 163 |
ref.cast (ref $t0) |
| 164 |
drop |
| 165 |
i32.const 12 |
| 166 |
table.get 0 |
| 167 |
ref.cast (ref $t0) |
| 168 |
drop |
| 169 |
i32.const 1 |
| 170 |
table.get 0 |
| 171 |
ref.cast (ref $t1') |
| 172 |
drop |
| 173 |
i32.const 2 |
| 174 |
table.get 0 |
| 175 |
ref.cast (ref $t1') |
| 176 |
drop |
| 177 |
i32.const 11 |
| 178 |
table.get 0 |
| 179 |
ref.cast (ref $t1) |
| 180 |
drop |
| 181 |
i32.const 12 |
| 182 |
table.get 0 |
| 183 |
ref.cast (ref $t1) |
| 184 |
drop |
| 185 |
i32.const 2 |
| 186 |
table.get 0 |
| 187 |
ref.cast (ref $t2') |
| 188 |
drop |
| 189 |
i32.const 12 |
| 190 |
table.get 0 |
| 191 |
ref.cast (ref $t2) |
| 192 |
drop |
| 193 |
) |
| 194 |
) |