| 1 |
(module |
| 2 |
(type $func (;0;) (func)) |
| 3 |
(type $cont (;1;) (cont $func)) |
| 4 |
(type $cont-func (;2;) (func (param (ref $cont)))) |
| 5 |
(type $cont-cont (;3;) (cont $cont-func)) |
| 6 |
(type $func-cont-func-func (;4;) (func (param (ref $func) (ref $cont-func)))) |
| 7 |
(type $func-cont-func-cont (;5;) (cont $func-cont-func-func)) |
| 8 |
(type (;6;) (func (param (ref $func-cont-func-cont)))) |
| 9 |
(type (;7;) (func (param i32))) |
| 10 |
(import "scheduler" "sync" (func $scheduler-sync (;0;) (type 6))) |
| 11 |
(import "scheduler" "kt" (func $scheduler-kt (;1;) (type 6))) |
| 12 |
(import "scheduler" "tk" (func $scheduler-tk (;2;) (type 6))) |
| 13 |
(import "scheduler" "ykt" (func $scheduler-ykt (;3;) (type 6))) |
| 14 |
(import "scheduler" "ytk" (func $scheduler-ytk (;4;) (type 6))) |
| 15 |
(import "spectest" "print_i32" (func $log (;5;) (type 7))) |
| 16 |
(import "example" "main" (func $main (;6;) (type $func-cont-func-func))) |
| 17 |
(export "run" (func $run)) |
| 18 |
(elem (;0;) declare func $main) |
| 19 |
(func $run (;7;) (type $func) |
| 20 |
i32.const -1 |
| 21 |
call $log |
| 22 |
ref.func $main |
| 23 |
cont.new $func-cont-func-cont |
| 24 |
call $scheduler-sync |
| 25 |
i32.const -2 |
| 26 |
call $log |
| 27 |
ref.func $main |
| 28 |
cont.new $func-cont-func-cont |
| 29 |
call $scheduler-kt |
| 30 |
i32.const -3 |
| 31 |
call $log |
| 32 |
ref.func $main |
| 33 |
cont.new $func-cont-func-cont |
| 34 |
call $scheduler-tk |
| 35 |
i32.const -4 |
| 36 |
call $log |
| 37 |
ref.func $main |
| 38 |
cont.new $func-cont-func-cont |
| 39 |
call $scheduler-ykt |
| 40 |
i32.const -5 |
| 41 |
call $log |
| 42 |
ref.func $main |
| 43 |
cont.new $func-cont-func-cont |
| 44 |
call $scheduler-ytk |
| 45 |
i32.const -6 |
| 46 |
call $log |
| 47 |
) |
| 48 |
) |