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 / si / harness / examples / contract_release.om
| 1 | note contract_release: om2 release erases contracts; the false precondition no longer traps |
| 2 | om2 release |
| 3 | fn half x uint to uint |
| 4 | requires eq rem x 2 0 |
| 5 | ret div x 2 |
| 6 | end |
| 7 | fn main to int |
| 8 | ret int half 7 |
| 9 | end |