;;; TOOL: run-interp
(module
  (func $f (param i32) (result i32)
    (local i32)
    loop $cont
      local.get 1
      i32.const 1
      i32.add
      local.set 1
      local.get 1
      local.get 0
      i32.lt_s
      br_if $cont
    end
    local.get 1
    return)

  (func (export "test1") (result i32)
    i32.const 3
    call $f)

  (func (export "test2") (result i32)
    i32.const 10
    call $f))
(;; STDOUT ;;;
test1() => i32:3
test2() => i32:10
;;; STDOUT ;;)
