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 / n03_shl.osc
| 1 | // prove: shl |
| 2 | // expect: trap |
| 3 | // negative control: a shift amount of 8 or more traps SHIFT. |
| 4 | fn shl(x: u8, s: u8) -> u8 { |
| 5 | return x << s; |
| 6 | } |