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

6 lines · 142 bytes Raw Blame History
1// prove: sq
2// expect: trap
3// negative control: without the range precondition x * x overflows i8.
4fn sq(x: i8) -> i8 {
5 return x * x;
6}