| 1 |
(module |
| 2 |
(type (;0;) (func)) |
| 3 |
(type $S (;1;) (func)) |
| 4 |
(type (;2;) (func)) |
| 5 |
(type (;3;) (func (result i32))) |
| 6 |
(type (;4;) (func (result i32))) |
| 7 |
(type $T (;5;) (func (param i32) (result i32))) |
| 8 |
(type $U (;6;) (func (param i32))) |
| 9 |
(import "spectest" "print_i32" (func $print (;0;) (type $U))) |
| 10 |
(export "one" (func 3)) |
| 11 |
(export "two" (func 4)) |
| 12 |
(export "three" (func 5)) |
| 13 |
(export "four" (func 6)) |
| 14 |
(func (;1;) (type 0)) |
| 15 |
(func (;2;) (type $S)) |
| 16 |
(func (;3;) (type 4) (result i32) |
| 17 |
i32.const 13 |
| 18 |
) |
| 19 |
(func (;4;) (type $T) (param i32) (result i32) |
| 20 |
local.get 0 |
| 21 |
i32.const 1 |
| 22 |
i32.add |
| 23 |
) |
| 24 |
(func (;5;) (type $T) (param $a i32) (result i32) |
| 25 |
local.get $a |
| 26 |
i32.const 2 |
| 27 |
i32.sub |
| 28 |
) |
| 29 |
(func (;6;) (type $U) (param i32) |
| 30 |
local.get 0 |
| 31 |
call $print |
| 32 |
) |
| 33 |
) |