(module (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func)) (memory (;0;) 1 1) (export "checkRange" (func 0)) (export "test" (func 1)) (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32) loop $cont local.get $from local.get $to i32.eq if ;; label = @2 i32.const -1 return end local.get $from i32.load8_u local.get $expected i32.eq if ;; label = @2 local.get $from i32.const 1 i32.add local.set $from br $cont end end local.get $from return ) (func (;1;) (type 1) i32.const -256 i32.const 85 i32.const 257 memory.fill ) )