
; function: if-loop-test

; start LHS (in if-loop-test)
%0 = sub 0:i32, 0:i32
%1 = ne 0:i32, 0:i32
pc %1 1:i1
infer %0

(module
 (type $0 (func))
 (func $if-loop-test
  (local $0 i32)
  (if
   (i32.const 0)
   (then
    (loop $label$0
     (local.set $0
      (i32.sub
       (i32.const 0)
       (i32.const 0)
      )
     )
    )
   )
  )
 )
)
