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 / n1.om
| 1 | note break leaves only the inner loop: 1 + 10 per outer pass, 3 x 11 = 33 |
| 2 | fn main to ulong |
| 3 | n = ulong 0 |
| 4 | for i ulong 3 |
| 5 | for j ulong 3 |
| 6 | if eq j 1 |
| 7 | break |
| 8 | end |
| 9 | n = add n 1 |
| 10 | end |
| 11 | n = add n 10 |
| 12 | end |
| 13 | ret n |
| 14 | end |