interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / tests / checker2 / lrat / p12_max.osc

7 lines · 183 bytes Raw Blame History
1// prove: max8
2// expect: holds
3// the maximum is at least both arguments.
4fn max8(a: i8, b: i8) -> i8 ensures result >= a && result >= b {
5 if a > b { return a; }
6 return b;
7}