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 / p12_max.osc
| 1 | // prove: max8 |
| 2 | // expect: holds |
| 3 | // the maximum is at least both arguments. |
| 4 | fn max8(a: i8, b: i8) -> i8 ensures result >= a && result >= b { |
| 5 | if a > b { return a; } |
| 6 | return b; |
| 7 | } |