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 / p05_sub8.osc

6 lines · 206 bytes Raw Blame History
1// prove: sub8
2// expect: holds
3// checked i8 subtraction stays in range under its precondition.
4fn sub8(a: i8, b: i8) -> i8 requires b >= 0 && b <= 50 && a >= -70 ensures result <= a {
5 return a - b;
6}