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 / fresh.om
| 1 | om2 |
| 2 | fn fill a edit uint 2 fresh to void |
| 3 | ensures eq get a 0 1 |
| 4 | put a 0 1 |
| 5 | put a 1 2 |
| 6 | end |
| 7 | fn main to int |
| 8 | a = new uint 2 0 |
| 9 | fill a |
| 10 | ret 0 |
| 11 | end |