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 / returnonce.om
| 1 | om2 |
| 2 | global a int 1 |
| 3 | fn inc to int |
| 4 | put a 0 add get a 0 1 |
| 5 | ret get a 0 |
| 6 | end |
| 7 | fn f to int |
| 8 | ensures eq result 1 |
| 9 | ret inc |
| 10 | end |
| 11 | fn main to int |
| 12 | x = f |
| 13 | ret sub add x get a 0 2 |
| 14 | end |