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 / parity.om
| 1 | om2 |
| 2 | fn check x int to int |
| 3 | requires ge x 0 |
| 4 | ensures le result 10 |
| 5 | i = int 0 |
| 6 | while lt i x bound 20 |
| 7 | invariant le i 10 |
| 8 | i = add i 1 |
| 9 | end |
| 10 | ret i |
| 11 | end |