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 / n09_signed_shl.osc
| 1 | // prove: sshl |
| 2 | // expect: trap |
| 3 | // negative control: a signed left shift that leaves the i8 range traps OVERFLOW. |
| 4 | fn sshl(x: i8) -> i8 { |
| 5 | return x << 2; |
| 6 | } |