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 / p10_square.osc
| 1 | // prove: sq |
| 2 | // expect: holds |
| 3 | // i8 square in range for |x| <= 11, and non-negative. |
| 4 | fn sq(x: i8) -> i8 requires x >= -11 && x <= 11 ensures result >= 0 { |
| 5 | return x * x; |
| 6 | } |