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 / inline.om
| 1 | om2 |
| 2 | fn f x int to int inline |
| 3 | requires gt x 0 |
| 4 | ensures eq result add x 1 |
| 5 | ret add x 1 |
| 6 | end |
| 7 | fn main to int |
| 8 | x = int 1 |
| 9 | x = f x |
| 10 | ret sub x 2 |
| 11 | end |