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 / n02_add8.osc
| 1 | // prove: add8 |
| 2 | // expect: trap |
| 3 | // negative control: unchecked i8 addition can overflow. |
| 4 | fn add8(a: i8, b: i8) -> i8 { |
| 5 | return a + b; |
| 6 | } |