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