(module main)

(fn local_abs_i32 ((value i32)) -> i32
  (if (< value 0)
    (- 0 value)
    value))

(fn local_square_i32 ((value i32)) -> i32
  (* value value))

(fn main () -> i32
  (std.io.print_i32 (local_abs_i32 (- 0 3)))
  (std.io.print_i32 (local_square_i32 4))
  0)

(test "layout contract helper shape"
  (= (local_square_i32 (local_abs_i32 (- 0 3))) 9))
