(module (type $func (;0;) (func)) (type $cont (;1;) (cont $func)) (type (;2;) (func (param (ref $cont)))) (type (;3;) (func (param i32))) (import "scheduler" "run" (func $scheduler (;0;) (type $func))) (import "queue" "enqueue" (func $enqueue (;1;) (type 2))) (import "spectest" "print_i32" (func $log (;2;) (type 3))) (import "example" "thread1" (func $thread1 (;3;) (type $func))) (import "example" "thread2" (func $thread2 (;4;) (type $func))) (import "example" "thread3" (func $thread3 (;5;) (type $func))) (export "run" (func 6)) (elem (;0;) declare func $thread1 $thread2 $thread3) (func (;6;) (type $func) ref.func $thread1 cont.new $cont call $enqueue ref.func $thread2 cont.new $cont call $enqueue ref.func $thread3 cont.new $cont call $enqueue i32.const -1 call $log call $scheduler i32.const -2 call $log ) )