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 / c3.om
| 1 | note continue leaves only the inner iteration: 2 successes per outer pass, 3 x 12 = 36 |
| 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 | continue |
| 8 | end |
| 9 | n = add n 1 |
| 10 | end |
| 11 | n = add n 10 |
| 12 | end |
| 13 | ret n |
| 14 | end |