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 / n05_ensures.osc
| 1 | // prove: avg_bad |
| 2 | // expect: trap |
| 3 | // negative control: a false ensures clause (the plain sum wraps). |
| 4 | fn avg_bad(a: u8, b: u8) -> u8 ensures result >= a { |
| 5 | return a + b; |
| 6 | } |