interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / tests / checker2 / lrat / p20_mul_wide.osc

6 lines · 203 bytes Raw Blame History
1// prove: m
2// expect: holds
3// product of two nibbles widened to u16 never exceeds 225.
4fn m(a: u8, b: u8) -> u16 requires a < 16 && b < 16 ensures result <= 225 {
5 return (a as u16) * (b as u16);
6}