wa-lang.org/wazero@v1.0.2/internal/integration_test/engine/testdata/recursive.wat (about) 1 (module 2 (import "env" "host_func" (func $host_func )) 3 4 (func $main (param i32) 5 block ;; label = @1 6 loop ;; label = @2 7 local.get 0 8 i32.eqz 9 br_if 1 (;@1;) 10 local.get 0 11 i32.const -1 12 i32.add 13 local.set 0 14 call $host_func 15 br 0 (;@2;) 16 end 17 end 18 ) 19 20 (func $called_by_host_func (result i32) 21 i32.const 100 22 ) 23 24 (export "main" (func $main)) 25 (export "called_by_host_func" (func $called_by_host_func)) 26 27 )