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 / c2.om
| 1 | note continue in a for jumps to the increment, so the loop still advances: 0+1+2+4+5 = 12 |
| 2 | fn main to ulong |
| 3 | s = ulong 0 |
| 4 | for i ulong 6 |
| 5 | if eq i 3 |
| 6 | continue |
| 7 | end |
| 8 | s = add s i |
| 9 | end |
| 10 | ret s |
| 11 | end |