| 1 |
(module |
| 2 |
(type $proc (;0;) (func)) |
| 3 |
(type $out-i32 (;1;) (func (result i32))) |
| 4 |
(type $out-i64 (;2;) (func (result i64))) |
| 5 |
(type $out-f32 (;3;) (func (result f32))) |
| 6 |
(type $out-f64 (;4;) (func (result f64))) |
| 7 |
(type $out-f64-i32 (;5;) (func (result f64 i32))) |
| 8 |
(type $over-i32 (;6;) (func (param i32) (result i32))) |
| 9 |
(type $over-i64 (;7;) (func (param i64) (result i64))) |
| 10 |
(type $over-f32 (;8;) (func (param f32) (result f32))) |
| 11 |
(type $over-f64 (;9;) (func (param f64) (result f64))) |
| 12 |
(type $over-i32-f64 (;10;) (func (param i32 f64) (result i32 f64))) |
| 13 |
(type $swap-i32-i64 (;11;) (func (param i32 i64) (result i64 i32))) |
| 14 |
(type $f32-i32 (;12;) (func (param f32 i32) (result i32))) |
| 15 |
(type $i32-i64 (;13;) (func (param i32 i64) (result i64))) |
| 16 |
(type $f64-f32 (;14;) (func (param f64 f32) (result f32))) |
| 17 |
(type $i64-f64 (;15;) (func (param i64 f64) (result f64))) |
| 18 |
(type $over-i32-duplicate (;16;) (func (param i32) (result i32))) |
| 19 |
(type $over-i64-duplicate (;17;) (func (param i64) (result i64))) |
| 20 |
(type $over-f32-duplicate (;18;) (func (param f32) (result f32))) |
| 21 |
(type $over-f64-duplicate (;19;) (func (param f64) (result f64))) |
| 22 |
(type (;20;) (func (param i64))) |
| 23 |
(type (;21;) (func (param i64 f64 i32 i64))) |
| 24 |
(type (;22;) (func (param i64) (result i32))) |
| 25 |
(type (;23;) (func (param i64 f64 i32 i64) (result i32))) |
| 26 |
(type (;24;) (func (result i32 f64))) |
| 27 |
(type (;25;) (func (result i64 i32))) |
| 28 |
(type (;26;) (func (param i32) (result i64))) |
| 29 |
(type (;27;) (func (param i32) (result f32))) |
| 30 |
(type (;28;) (func (param i32) (result f64))) |
| 31 |
(table (;0;) 32 32 funcref) |
| 32 |
(memory (;0;) 1) |
| 33 |
(global $a (;0;) (mut f64) f64.const 0x1.4p+3 (;=10;)) |
| 34 |
(export "type-i32" (func 20)) |
| 35 |
(export "type-i64" (func 21)) |
| 36 |
(export "type-f32" (func 22)) |
| 37 |
(export "type-f64" (func 23)) |
| 38 |
(export "type-f64-i32" (func 24)) |
| 39 |
(export "type-index" (func 25)) |
| 40 |
(export "type-first-i32" (func 26)) |
| 41 |
(export "type-first-i64" (func 27)) |
| 42 |
(export "type-first-f32" (func 28)) |
| 43 |
(export "type-first-f64" (func 29)) |
| 44 |
(export "type-second-i32" (func 30)) |
| 45 |
(export "type-second-i64" (func 31)) |
| 46 |
(export "type-second-f32" (func 32)) |
| 47 |
(export "type-second-f64" (func 33)) |
| 48 |
(export "type-all-f64-i32" (func 34)) |
| 49 |
(export "type-all-i32-f64" (func 35)) |
| 50 |
(export "type-all-i32-i64" (func 36)) |
| 51 |
(export "dispatch" (func 37)) |
| 52 |
(export "dispatch-structural-i64" (func 38)) |
| 53 |
(export "dispatch-structural-i32" (func 39)) |
| 54 |
(export "dispatch-structural-f32" (func 40)) |
| 55 |
(export "dispatch-structural-f64" (func 41)) |
| 56 |
(export "fac-i64" (func $fac-i64)) |
| 57 |
(export "fib-i64" (func $fib-i64)) |
| 58 |
(export "fac-i32" (func $fac-i32)) |
| 59 |
(export "fac-f32" (func $fac-f32)) |
| 60 |
(export "fac-f64" (func $fac-f64)) |
| 61 |
(export "fib-i32" (func $fib-i32)) |
| 62 |
(export "fib-f32" (func $fib-f32)) |
| 63 |
(export "fib-f64" (func $fib-f64)) |
| 64 |
(export "even" (func $even)) |
| 65 |
(export "odd" (func $odd)) |
| 66 |
(export "runaway" (func $runaway)) |
| 67 |
(export "mutual-runaway" (func $mutual-runaway1)) |
| 68 |
(export "as-select-first" (func 55)) |
| 69 |
(export "as-select-mid" (func 56)) |
| 70 |
(export "as-select-last" (func 57)) |
| 71 |
(export "as-if-condition" (func 58)) |
| 72 |
(export "as-br_if-first" (func 59)) |
| 73 |
(export "as-br_if-last" (func 60)) |
| 74 |
(export "as-br_table-first" (func 61)) |
| 75 |
(export "as-br_table-last" (func 62)) |
| 76 |
(export "as-store-first" (func 63)) |
| 77 |
(export "as-store-last" (func 64)) |
| 78 |
(export "as-memory.grow-value" (func 65)) |
| 79 |
(export "as-return-value" (func 66)) |
| 80 |
(export "as-drop-operand" (func 67)) |
| 81 |
(export "as-br-value" (func 68)) |
| 82 |
(export "as-local.set-value" (func 69)) |
| 83 |
(export "as-local.tee-value" (func 70)) |
| 84 |
(export "as-global.set-value" (func 71)) |
| 85 |
(export "as-load-operand" (func 72)) |
| 86 |
(export "as-unary-operand" (func 73)) |
| 87 |
(export "as-binary-left" (func 74)) |
| 88 |
(export "as-binary-right" (func 75)) |
| 89 |
(export "as-test-operand" (func 76)) |
| 90 |
(export "as-compare-left" (func 77)) |
| 91 |
(export "as-compare-right" (func 78)) |
| 92 |
(export "as-convert-operand" (func 79)) |
| 93 |
(elem (;0;) (table 0) (i32.const 0) func $const-i32 $const-i64 $const-f32 $const-f64 $id-i32 $id-i64 $id-f32 $id-f64 $f32-i32 $i32-i64 $f64-f32 $i64-f64 $fac-i64 $fib-i64 $even $odd $runaway $mutual-runaway1 $mutual-runaway2 $over-i32-duplicate $over-i64-duplicate $over-f32-duplicate $over-f64-duplicate $fac-i32 $fac-f32 $fac-f64 $fib-i32 $fib-f32 $fib-f64 $const-f64-i32 $id-i32-f64 $swap-i32-i64) |
| 94 |
(func $const-i32 (;0;) (type $out-i32) (result i32) |
| 95 |
i32.const 306 |
| 96 |
) |
| 97 |
(func $const-i64 (;1;) (type $out-i64) (result i64) |
| 98 |
i64.const 356 |
| 99 |
) |
| 100 |
(func $const-f32 (;2;) (type $out-f32) (result f32) |
| 101 |
f32.const 0x1.e64p+11 (;=3890;) |
| 102 |
) |
| 103 |
(func $const-f64 (;3;) (type $out-f64) (result f64) |
| 104 |
f64.const 0x1.ec8p+11 (;=3940;) |
| 105 |
) |
| 106 |
(func $const-f64-i32 (;4;) (type $out-f64-i32) (result f64 i32) |
| 107 |
f64.const 0x1.ec8p+11 (;=3940;) |
| 108 |
i32.const 32 |
| 109 |
) |
| 110 |
(func $id-i32 (;5;) (type $over-i32) (param i32) (result i32) |
| 111 |
local.get 0 |
| 112 |
) |
| 113 |
(func $id-i64 (;6;) (type $over-i64) (param i64) (result i64) |
| 114 |
local.get 0 |
| 115 |
) |
| 116 |
(func $id-f32 (;7;) (type $over-f32) (param f32) (result f32) |
| 117 |
local.get 0 |
| 118 |
) |
| 119 |
(func $id-f64 (;8;) (type $over-f64) (param f64) (result f64) |
| 120 |
local.get 0 |
| 121 |
) |
| 122 |
(func $id-i32-f64 (;9;) (type $over-i32-f64) (param i32 f64) (result i32 f64) |
| 123 |
local.get 0 |
| 124 |
local.get 1 |
| 125 |
) |
| 126 |
(func $swap-i32-i64 (;10;) (type $swap-i32-i64) (param i32 i64) (result i64 i32) |
| 127 |
local.get 1 |
| 128 |
local.get 0 |
| 129 |
) |
| 130 |
(func $i32-i64 (;11;) (type $i32-i64) (param i32 i64) (result i64) |
| 131 |
local.get 1 |
| 132 |
) |
| 133 |
(func $i64-f64 (;12;) (type $i64-f64) (param i64 f64) (result f64) |
| 134 |
local.get 1 |
| 135 |
) |
| 136 |
(func $f32-i32 (;13;) (type $f32-i32) (param f32 i32) (result i32) |
| 137 |
local.get 1 |
| 138 |
) |
| 139 |
(func $f64-f32 (;14;) (type $f64-f32) (param f64 f32) (result f32) |
| 140 |
local.get 1 |
| 141 |
) |
| 142 |
(func $over-i32-duplicate (;15;) (type $over-i32-duplicate) (param i32) (result i32) |
| 143 |
local.get 0 |
| 144 |
) |
| 145 |
(func $over-i64-duplicate (;16;) (type $over-i64-duplicate) (param i64) (result i64) |
| 146 |
local.get 0 |
| 147 |
) |
| 148 |
(func $over-f32-duplicate (;17;) (type $over-f32-duplicate) (param f32) (result f32) |
| 149 |
local.get 0 |
| 150 |
) |
| 151 |
(func $over-f64-duplicate (;18;) (type $over-f64-duplicate) (param f64) (result f64) |
| 152 |
local.get 0 |
| 153 |
) |
| 154 |
(func (;19;) (type $proc) |
| 155 |
i32.const 0 |
| 156 |
call_indirect (type $proc) |
| 157 |
i64.const 0 |
| 158 |
i32.const 0 |
| 159 |
call_indirect (type 20) |
| 160 |
i64.const 0 |
| 161 |
f64.const 0x0p+0 (;=0;) |
| 162 |
i32.const 0 |
| 163 |
i64.const 0 |
| 164 |
i32.const 0 |
| 165 |
call_indirect (type 21) |
| 166 |
i32.const 0 |
| 167 |
call_indirect (type $proc) |
| 168 |
i32.const 0 |
| 169 |
call_indirect (type $out-i32) |
| 170 |
i32.eqz |
| 171 |
drop |
| 172 |
i32.const 0 |
| 173 |
call_indirect (type $out-i32) |
| 174 |
i32.eqz |
| 175 |
drop |
| 176 |
i64.const 0 |
| 177 |
i32.const 0 |
| 178 |
call_indirect (type 22) |
| 179 |
i32.eqz |
| 180 |
drop |
| 181 |
i64.const 0 |
| 182 |
f64.const 0x0p+0 (;=0;) |
| 183 |
i32.const 0 |
| 184 |
i64.const 0 |
| 185 |
i32.const 0 |
| 186 |
call_indirect (type 23) |
| 187 |
i32.eqz |
| 188 |
drop |
| 189 |
i64.const 0 |
| 190 |
i32.const 0 |
| 191 |
call_indirect (type $over-i64) |
| 192 |
i64.eqz |
| 193 |
drop |
| 194 |
) |
| 195 |
(func (;20;) (type $out-i32) (result i32) |
| 196 |
i32.const 0 |
| 197 |
call_indirect (type $out-i32) |
| 198 |
) |
| 199 |
(func (;21;) (type $out-i64) (result i64) |
| 200 |
i32.const 1 |
| 201 |
call_indirect (type $out-i64) |
| 202 |
) |
| 203 |
(func (;22;) (type $out-f32) (result f32) |
| 204 |
i32.const 2 |
| 205 |
call_indirect (type $out-f32) |
| 206 |
) |
| 207 |
(func (;23;) (type $out-f64) (result f64) |
| 208 |
i32.const 3 |
| 209 |
call_indirect (type $out-f64) |
| 210 |
) |
| 211 |
(func (;24;) (type $out-f64-i32) (result f64 i32) |
| 212 |
i32.const 29 |
| 213 |
call_indirect (type $out-f64-i32) |
| 214 |
) |
| 215 |
(func (;25;) (type $out-i64) (result i64) |
| 216 |
i64.const 100 |
| 217 |
i32.const 5 |
| 218 |
call_indirect (type $over-i64) |
| 219 |
) |
| 220 |
(func (;26;) (type $out-i32) (result i32) |
| 221 |
i32.const 32 |
| 222 |
i32.const 4 |
| 223 |
call_indirect (type $over-i32) |
| 224 |
) |
| 225 |
(func (;27;) (type $out-i64) (result i64) |
| 226 |
i64.const 64 |
| 227 |
i32.const 5 |
| 228 |
call_indirect (type $over-i64) |
| 229 |
) |
| 230 |
(func (;28;) (type $out-f32) (result f32) |
| 231 |
f32.const 0x1.51eb86p+0 (;=1.32;) |
| 232 |
i32.const 6 |
| 233 |
call_indirect (type $over-f32) |
| 234 |
) |
| 235 |
(func (;29;) (type $out-f64) (result f64) |
| 236 |
f64.const 0x1.a3d70a3d70a3dp+0 (;=1.64;) |
| 237 |
i32.const 7 |
| 238 |
call_indirect (type $over-f64) |
| 239 |
) |
| 240 |
(func (;30;) (type $out-i32) (result i32) |
| 241 |
f32.const 0x1.00ccccp+5 (;=32.1;) |
| 242 |
i32.const 32 |
| 243 |
i32.const 8 |
| 244 |
call_indirect (type $f32-i32) |
| 245 |
) |
| 246 |
(func (;31;) (type $out-i64) (result i64) |
| 247 |
i32.const 32 |
| 248 |
i64.const 64 |
| 249 |
i32.const 9 |
| 250 |
call_indirect (type $i32-i64) |
| 251 |
) |
| 252 |
(func (;32;) (type $out-f32) (result f32) |
| 253 |
f64.const 0x1p+6 (;=64;) |
| 254 |
f32.const 0x1p+5 (;=32;) |
| 255 |
i32.const 10 |
| 256 |
call_indirect (type $f64-f32) |
| 257 |
) |
| 258 |
(func (;33;) (type $out-f64) (result f64) |
| 259 |
i64.const 64 |
| 260 |
f64.const 0x1.0066666666666p+6 (;=64.1;) |
| 261 |
i32.const 11 |
| 262 |
call_indirect (type $i64-f64) |
| 263 |
) |
| 264 |
(func (;34;) (type $out-f64-i32) (result f64 i32) |
| 265 |
i32.const 29 |
| 266 |
call_indirect (type $out-f64-i32) |
| 267 |
) |
| 268 |
(func (;35;) (type 24) (result i32 f64) |
| 269 |
i32.const 1 |
| 270 |
f64.const 0x1p+1 (;=2;) |
| 271 |
i32.const 30 |
| 272 |
call_indirect (type $over-i32-f64) |
| 273 |
) |
| 274 |
(func (;36;) (type 25) (result i64 i32) |
| 275 |
i32.const 1 |
| 276 |
i64.const 2 |
| 277 |
i32.const 31 |
| 278 |
call_indirect (type $swap-i32-i64) |
| 279 |
) |
| 280 |
(func (;37;) (type $i32-i64) (param i32 i64) (result i64) |
| 281 |
local.get 1 |
| 282 |
local.get 0 |
| 283 |
call_indirect (type $over-i64) |
| 284 |
) |
| 285 |
(func (;38;) (type 26) (param i32) (result i64) |
| 286 |
i64.const 9 |
| 287 |
local.get 0 |
| 288 |
call_indirect (type $over-i64-duplicate) |
| 289 |
) |
| 290 |
(func (;39;) (type $over-i32) (param i32) (result i32) |
| 291 |
i32.const 9 |
| 292 |
local.get 0 |
| 293 |
call_indirect (type $over-i32-duplicate) |
| 294 |
) |
| 295 |
(func (;40;) (type 27) (param i32) (result f32) |
| 296 |
f32.const 0x1.2p+3 (;=9;) |
| 297 |
local.get 0 |
| 298 |
call_indirect (type $over-f32-duplicate) |
| 299 |
) |
| 300 |
(func (;41;) (type 28) (param i32) (result f64) |
| 301 |
f64.const 0x1.2p+3 (;=9;) |
| 302 |
local.get 0 |
| 303 |
call_indirect (type $over-f64-duplicate) |
| 304 |
) |
| 305 |
(func $fac-i64 (;42;) (type $over-i64) (param i64) (result i64) |
| 306 |
local.get 0 |
| 307 |
i64.eqz |
| 308 |
if (result i64) ;; label = @1 |
| 309 |
i64.const 1 |
| 310 |
else |
| 311 |
local.get 0 |
| 312 |
local.get 0 |
| 313 |
i64.const 1 |
| 314 |
i64.sub |
| 315 |
i32.const 12 |
| 316 |
call_indirect (type $over-i64) |
| 317 |
i64.mul |
| 318 |
end |
| 319 |
) |
| 320 |
(func $fib-i64 (;43;) (type $over-i64) (param i64) (result i64) |
| 321 |
local.get 0 |
| 322 |
i64.const 1 |
| 323 |
i64.le_u |
| 324 |
if (result i64) ;; label = @1 |
| 325 |
i64.const 1 |
| 326 |
else |
| 327 |
local.get 0 |
| 328 |
i64.const 2 |
| 329 |
i64.sub |
| 330 |
i32.const 13 |
| 331 |
call_indirect (type $over-i64) |
| 332 |
local.get 0 |
| 333 |
i64.const 1 |
| 334 |
i64.sub |
| 335 |
i32.const 13 |
| 336 |
call_indirect (type $over-i64) |
| 337 |
i64.add |
| 338 |
end |
| 339 |
) |
| 340 |
(func $fac-i32 (;44;) (type $over-i32) (param i32) (result i32) |
| 341 |
local.get 0 |
| 342 |
i32.eqz |
| 343 |
if (result i32) ;; label = @1 |
| 344 |
i32.const 1 |
| 345 |
else |
| 346 |
local.get 0 |
| 347 |
local.get 0 |
| 348 |
i32.const 1 |
| 349 |
i32.sub |
| 350 |
i32.const 23 |
| 351 |
call_indirect (type $over-i32) |
| 352 |
i32.mul |
| 353 |
end |
| 354 |
) |
| 355 |
(func $fac-f32 (;45;) (type $over-f32) (param f32) (result f32) |
| 356 |
local.get 0 |
| 357 |
f32.const 0x0p+0 (;=0;) |
| 358 |
f32.eq |
| 359 |
if (result f32) ;; label = @1 |
| 360 |
f32.const 0x1p+0 (;=1;) |
| 361 |
else |
| 362 |
local.get 0 |
| 363 |
local.get 0 |
| 364 |
f32.const 0x1p+0 (;=1;) |
| 365 |
f32.sub |
| 366 |
i32.const 24 |
| 367 |
call_indirect (type $over-f32) |
| 368 |
f32.mul |
| 369 |
end |
| 370 |
) |
| 371 |
(func $fac-f64 (;46;) (type $over-f64) (param f64) (result f64) |
| 372 |
local.get 0 |
| 373 |
f64.const 0x0p+0 (;=0;) |
| 374 |
f64.eq |
| 375 |
if (result f64) ;; label = @1 |
| 376 |
f64.const 0x1p+0 (;=1;) |
| 377 |
else |
| 378 |
local.get 0 |
| 379 |
local.get 0 |
| 380 |
f64.const 0x1p+0 (;=1;) |
| 381 |
f64.sub |
| 382 |
i32.const 25 |
| 383 |
call_indirect (type $over-f64) |
| 384 |
f64.mul |
| 385 |
end |
| 386 |
) |
| 387 |
(func $fib-i32 (;47;) (type $over-i32) (param i32) (result i32) |
| 388 |
local.get 0 |
| 389 |
i32.const 1 |
| 390 |
i32.le_u |
| 391 |
if (result i32) ;; label = @1 |
| 392 |
i32.const 1 |
| 393 |
else |
| 394 |
local.get 0 |
| 395 |
i32.const 2 |
| 396 |
i32.sub |
| 397 |
i32.const 26 |
| 398 |
call_indirect (type $over-i32) |
| 399 |
local.get 0 |
| 400 |
i32.const 1 |
| 401 |
i32.sub |
| 402 |
i32.const 26 |
| 403 |
call_indirect (type $over-i32) |
| 404 |
i32.add |
| 405 |
end |
| 406 |
) |
| 407 |
(func $fib-f32 (;48;) (type $over-f32) (param f32) (result f32) |
| 408 |
local.get 0 |
| 409 |
f32.const 0x1p+0 (;=1;) |
| 410 |
f32.le |
| 411 |
if (result f32) ;; label = @1 |
| 412 |
f32.const 0x1p+0 (;=1;) |
| 413 |
else |
| 414 |
local.get 0 |
| 415 |
f32.const 0x1p+1 (;=2;) |
| 416 |
f32.sub |
| 417 |
i32.const 27 |
| 418 |
call_indirect (type $over-f32) |
| 419 |
local.get 0 |
| 420 |
f32.const 0x1p+0 (;=1;) |
| 421 |
f32.sub |
| 422 |
i32.const 27 |
| 423 |
call_indirect (type $over-f32) |
| 424 |
f32.add |
| 425 |
end |
| 426 |
) |
| 427 |
(func $fib-f64 (;49;) (type $over-f64) (param f64) (result f64) |
| 428 |
local.get 0 |
| 429 |
f64.const 0x1p+0 (;=1;) |
| 430 |
f64.le |
| 431 |
if (result f64) ;; label = @1 |
| 432 |
f64.const 0x1p+0 (;=1;) |
| 433 |
else |
| 434 |
local.get 0 |
| 435 |
f64.const 0x1p+1 (;=2;) |
| 436 |
f64.sub |
| 437 |
i32.const 28 |
| 438 |
call_indirect (type $over-f64) |
| 439 |
local.get 0 |
| 440 |
f64.const 0x1p+0 (;=1;) |
| 441 |
f64.sub |
| 442 |
i32.const 28 |
| 443 |
call_indirect (type $over-f64) |
| 444 |
f64.add |
| 445 |
end |
| 446 |
) |
| 447 |
(func $even (;50;) (type $over-i32) (param i32) (result i32) |
| 448 |
local.get 0 |
| 449 |
i32.eqz |
| 450 |
if (result i32) ;; label = @1 |
| 451 |
i32.const 44 |
| 452 |
else |
| 453 |
local.get 0 |
| 454 |
i32.const 1 |
| 455 |
i32.sub |
| 456 |
i32.const 15 |
| 457 |
call_indirect (type $over-i32) |
| 458 |
end |
| 459 |
) |
| 460 |
(func $odd (;51;) (type $over-i32) (param i32) (result i32) |
| 461 |
local.get 0 |
| 462 |
i32.eqz |
| 463 |
if (result i32) ;; label = @1 |
| 464 |
i32.const 99 |
| 465 |
else |
| 466 |
local.get 0 |
| 467 |
i32.const 1 |
| 468 |
i32.sub |
| 469 |
i32.const 14 |
| 470 |
call_indirect (type $over-i32) |
| 471 |
end |
| 472 |
) |
| 473 |
(func $runaway (;52;) (type $proc) |
| 474 |
i32.const 16 |
| 475 |
call_indirect (type $proc) |
| 476 |
) |
| 477 |
(func $mutual-runaway1 (;53;) (type $proc) |
| 478 |
i32.const 18 |
| 479 |
call_indirect (type $proc) |
| 480 |
) |
| 481 |
(func $mutual-runaway2 (;54;) (type $proc) |
| 482 |
i32.const 17 |
| 483 |
call_indirect (type $proc) |
| 484 |
) |
| 485 |
(func (;55;) (type $out-i32) (result i32) |
| 486 |
i32.const 0 |
| 487 |
call_indirect (type $out-i32) |
| 488 |
i32.const 2 |
| 489 |
i32.const 3 |
| 490 |
select |
| 491 |
) |
| 492 |
(func (;56;) (type $out-i32) (result i32) |
| 493 |
i32.const 2 |
| 494 |
i32.const 0 |
| 495 |
call_indirect (type $out-i32) |
| 496 |
i32.const 3 |
| 497 |
select |
| 498 |
) |
| 499 |
(func (;57;) (type $out-i32) (result i32) |
| 500 |
i32.const 2 |
| 501 |
i32.const 3 |
| 502 |
i32.const 0 |
| 503 |
call_indirect (type $out-i32) |
| 504 |
select |
| 505 |
) |
| 506 |
(func (;58;) (type $out-i32) (result i32) |
| 507 |
i32.const 0 |
| 508 |
call_indirect (type $out-i32) |
| 509 |
if (result i32) ;; label = @1 |
| 510 |
i32.const 1 |
| 511 |
else |
| 512 |
i32.const 2 |
| 513 |
end |
| 514 |
) |
| 515 |
(func (;59;) (type $out-i64) (result i64) |
| 516 |
block (result i64) ;; label = @1 |
| 517 |
i32.const 1 |
| 518 |
call_indirect (type $out-i64) |
| 519 |
i32.const 2 |
| 520 |
br_if 0 (;@1;) |
| 521 |
end |
| 522 |
) |
| 523 |
(func (;60;) (type $out-i32) (result i32) |
| 524 |
block (result i32) ;; label = @1 |
| 525 |
i32.const 2 |
| 526 |
i32.const 0 |
| 527 |
call_indirect (type $out-i32) |
| 528 |
br_if 0 (;@1;) |
| 529 |
end |
| 530 |
) |
| 531 |
(func (;61;) (type $out-f32) (result f32) |
| 532 |
block (result f32) ;; label = @1 |
| 533 |
i32.const 2 |
| 534 |
call_indirect (type $out-f32) |
| 535 |
i32.const 2 |
| 536 |
br_table 0 (;@1;) 0 (;@1;) |
| 537 |
end |
| 538 |
) |
| 539 |
(func (;62;) (type $out-i32) (result i32) |
| 540 |
block (result i32) ;; label = @1 |
| 541 |
i32.const 2 |
| 542 |
i32.const 0 |
| 543 |
call_indirect (type $out-i32) |
| 544 |
br_table 0 (;@1;) 0 (;@1;) |
| 545 |
end |
| 546 |
) |
| 547 |
(func (;63;) (type $proc) |
| 548 |
i32.const 0 |
| 549 |
call_indirect (type $out-i32) |
| 550 |
i32.const 1 |
| 551 |
i32.store |
| 552 |
) |
| 553 |
(func (;64;) (type $proc) |
| 554 |
i32.const 10 |
| 555 |
i32.const 3 |
| 556 |
call_indirect (type $out-f64) |
| 557 |
f64.store |
| 558 |
) |
| 559 |
(func (;65;) (type $out-i32) (result i32) |
| 560 |
i32.const 0 |
| 561 |
call_indirect (type $out-i32) |
| 562 |
memory.grow |
| 563 |
) |
| 564 |
(func (;66;) (type $out-i32) (result i32) |
| 565 |
i32.const 1 |
| 566 |
i32.const 4 |
| 567 |
call_indirect (type $over-i32) |
| 568 |
return |
| 569 |
) |
| 570 |
(func (;67;) (type $proc) |
| 571 |
i64.const 1 |
| 572 |
i32.const 5 |
| 573 |
call_indirect (type $over-i64) |
| 574 |
drop |
| 575 |
) |
| 576 |
(func (;68;) (type $out-f32) (result f32) |
| 577 |
block (result f32) ;; label = @1 |
| 578 |
f32.const 0x1p+0 (;=1;) |
| 579 |
i32.const 6 |
| 580 |
call_indirect (type $over-f32) |
| 581 |
br 0 (;@1;) |
| 582 |
end |
| 583 |
) |
| 584 |
(func (;69;) (type $out-f64) (result f64) |
| 585 |
(local f64) |
| 586 |
f64.const 0x1p+0 (;=1;) |
| 587 |
i32.const 7 |
| 588 |
call_indirect (type $over-f64) |
| 589 |
local.set 0 |
| 590 |
local.get 0 |
| 591 |
) |
| 592 |
(func (;70;) (type $out-f64) (result f64) |
| 593 |
(local f64) |
| 594 |
f64.const 0x1p+0 (;=1;) |
| 595 |
i32.const 7 |
| 596 |
call_indirect (type $over-f64) |
| 597 |
local.tee 0 |
| 598 |
) |
| 599 |
(func (;71;) (type $out-f64) (result f64) |
| 600 |
f64.const 0x1p+0 (;=1;) |
| 601 |
i32.const 7 |
| 602 |
call_indirect (type $over-f64) |
| 603 |
global.set $a |
| 604 |
global.get $a |
| 605 |
) |
| 606 |
(func (;72;) (type $out-i32) (result i32) |
| 607 |
i32.const 0 |
| 608 |
call_indirect (type $out-i32) |
| 609 |
i32.load |
| 610 |
) |
| 611 |
(func (;73;) (type $out-f32) (result f32) |
| 612 |
block (result f32) ;; label = @1 |
| 613 |
f32.const 0x0p+0 (;=0;) |
| 614 |
i32.const 6 |
| 615 |
call_indirect (type $over-f32) |
| 616 |
f32.sqrt |
| 617 |
end |
| 618 |
) |
| 619 |
(func (;74;) (type $out-i32) (result i32) |
| 620 |
block (result i32) ;; label = @1 |
| 621 |
i32.const 1 |
| 622 |
i32.const 4 |
| 623 |
call_indirect (type $over-i32) |
| 624 |
i32.const 10 |
| 625 |
i32.add |
| 626 |
end |
| 627 |
) |
| 628 |
(func (;75;) (type $out-i32) (result i32) |
| 629 |
block (result i32) ;; label = @1 |
| 630 |
i32.const 10 |
| 631 |
i32.const 1 |
| 632 |
i32.const 4 |
| 633 |
call_indirect (type $over-i32) |
| 634 |
i32.sub |
| 635 |
end |
| 636 |
) |
| 637 |
(func (;76;) (type $out-i32) (result i32) |
| 638 |
block (result i32) ;; label = @1 |
| 639 |
i32.const 1 |
| 640 |
i32.const 4 |
| 641 |
call_indirect (type $over-i32) |
| 642 |
i32.eqz |
| 643 |
end |
| 644 |
) |
| 645 |
(func (;77;) (type $out-i32) (result i32) |
| 646 |
block (result i32) ;; label = @1 |
| 647 |
i32.const 1 |
| 648 |
i32.const 4 |
| 649 |
call_indirect (type $over-i32) |
| 650 |
i32.const 10 |
| 651 |
i32.le_u |
| 652 |
end |
| 653 |
) |
| 654 |
(func (;78;) (type $out-i32) (result i32) |
| 655 |
block (result i32) ;; label = @1 |
| 656 |
i32.const 10 |
| 657 |
i32.const 1 |
| 658 |
i32.const 4 |
| 659 |
call_indirect (type $over-i32) |
| 660 |
i32.ne |
| 661 |
end |
| 662 |
) |
| 663 |
(func (;79;) (type $out-i64) (result i64) |
| 664 |
block (result i64) ;; label = @1 |
| 665 |
i32.const 1 |
| 666 |
i32.const 4 |
| 667 |
call_indirect (type $over-i32) |
| 668 |
i64.extend_i32_s |
| 669 |
end |
| 670 |
) |
| 671 |
) |