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 / ng / front / cases / contract-nested.om
| 1 | om2 debug |
| 2 | fn main to int |
| 3 | n = int 2 |
| 4 | for i int n |
| 5 | invariant le i n |
| 6 | j = int 0 |
| 7 | while lt j 2 |
| 8 | invariant le j 2 |
| 9 | j = add j 1 |
| 10 | if eq j 1 |
| 11 | continue |
| 12 | end |
| 13 | end |
| 14 | end |
| 15 | ret 0 |
| 16 | end |