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 / p13_widen_add.osc
| 1 | // prove: widen |
| 2 | // expect: holds |
| 3 | // widened byte sum is bounded. |
| 4 | fn widen(a: u8, b: u8) -> u16 ensures result <= 510 { |
| 5 | return (a as u16) + (b as u16); |
| 6 | } |