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 / n2.om
| 1 | note a break outside the inner loop targets the outer loop: 2 + 2 = 4 |
| 2 | fn main to ulong |
| 3 | n = ulong 0 |
| 4 | for i ulong 3 |
| 5 | for j ulong 2 |
| 6 | n = add n 1 |
| 7 | end |
| 8 | if eq i 1 |
| 9 | break |
| 10 | end |
| 11 | end |
| 12 | ret n |
| 13 | end |