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 / p14_signed_shl.osc

6 lines · 173 bytes Raw Blame History
1// prove: sshl
2// expect: holds
3// signed shift left that stays representable.
4fn sshl(x: i8) -> i8 requires x >= -16 && x < 16 ensures result >= -64 {
5 return x << 2;
6}