navid/haze / df4f593f1418066a042fb32d8d6a72c6190fd6dcdd000109623b7b140eb23f50 / samples/baseline_2.1/propagation_success.hz
propagation_success.hz
← samples/baseline_2.1 · 153 bytes · raw · download
pure fn square(x i32) i32 => x * x
fn need_square(n i32) i32
: pre n >= 0
=> square(n)
fn main() {
const n = 6
print(need_square(n))
}