| 1 |
(module |
| 2 |
(type $func (;0;) (func)) |
| 3 |
(type $cont (;1;) (cont $func)) |
| 4 |
(type (;2;) (func (param (ref null $cont)))) |
| 5 |
(type (;3;) (func (param i32))) |
| 6 |
(import "scheduler" "run" (func $scheduler (;0;) (type 2))) |
| 7 |
(import "spectest" "print_i32" (func $log (;1;) (type 3))) |
| 8 |
(import "example" "run" (func $run-example (;2;) (type $func))) |
| 9 |
(export "run" (func 3)) |
| 10 |
(elem (;0;) declare func $run-example) |
| 11 |
(func (;3;) (type $func) |
| 12 |
ref.func $run-example |
| 13 |
cont.new $cont |
| 14 |
call $scheduler |
| 15 |
) |
| 16 |
) |