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 / bridge / omega-bridge / tests / native / spin.om
| 1 | note sum of 0 .. n-1 (n at most 1000000): a loop long enough for the reentry test |
| 2 | fn spin n ulong to ulong |
| 3 | s = ulong 0 |
| 4 | for i ulong n |
| 5 | s = add s i |
| 6 | end |
| 7 | ret s |
| 8 | end |