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

6 lines · 170 bytes Raw Blame History
1// prove: shl
2// expect: holds
3// unsigned shift with the amount kept below the width never traps SHIFT.
4fn shl(x: u8, s: u8) -> u8 requires s < 8 {
5 return x << s;
6}