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 / n08_mul_wide.osc
| 1 | // prove: m |
| 2 | // expect: trap |
| 3 | // negative control: a u16 product of two full bytes exceeds the ensures bound 225. |
| 4 | fn m(a: u8, b: u8) -> u16 ensures result <= 225 { |
| 5 | return (a as u16) * (b as u16); |
| 6 | } |