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 / seed / omc / contracts / branchret.om
| 1 | om2 |
| 2 | fn f x int to int |
| 3 | ensures eq result 1 |
| 4 | if eq x 0 |
| 5 | ret 0 |
| 6 | else |
| 7 | ret 1 |
| 8 | end |
| 9 | end |
| 10 | fn main to int |
| 11 | ret f 0 |
| 12 | end |