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 / tests / loop / n3.om
| 1 | note two loops reuse a block slot; the first break must not be patched by the second loop |
| 2 | fn main to ulong |
| 3 | n = ulong 0 |
| 4 | while lt n 1 |
| 5 | break |
| 6 | end |
| 7 | n = add n 1 |
| 8 | while lt n 5 |
| 9 | n = add n 1 |
| 10 | if eq n 3 |
| 11 | break |
| 12 | end |
| 13 | end |
| 14 | ret n |
| 15 | end |