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 / c1.om
| 1 | note continue in a while jumps to the head: 1 + 2 + 4 + 5 + 6 = 18 |
| 2 | fn main to ulong |
| 3 | i = ulong 0 |
| 4 | s = ulong 0 |
| 5 | while lt i 6 |
| 6 | i = add i 1 |
| 7 | if eq i 3 |
| 8 | continue |
| 9 | end |
| 10 | s = add s i |
| 11 | end |
| 12 | ret s |
| 13 | end |