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
omega-mv / tests / checker2 / lrat / p05_sub8.osc
| 1 | // prove: sub8 |
| 2 | // expect: holds |
| 3 | // checked i8 subtraction stays in range under its precondition. |
| 4 | fn sub8(a: i8, b: i8) -> i8 requires b >= 0 && b <= 50 && a >= -70 ensures result <= a { |
| 5 | return a - b; |
| 6 | } |