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 / w1.om
| 1 | note while with a conditional break: 1 + 2 + 3 = 6 |
| 2 | fn main to ulong |
| 3 | i = ulong 0 |
| 4 | s = ulong 0 |
| 5 | while lt i 10 |
| 6 | i = add i 1 |
| 7 | if eq i 4 |
| 8 | break |
| 9 | end |
| 10 | s = add s i |
| 11 | end |
| 12 | ret s |
| 13 | end |