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 / qualification / om2 / sec / s3s4 / unroll-kvar.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Contract section 4 line 87 (K is a number) and erratum E7: a K that is not a number is error 16, |
| 3 | note at line 9 (the for line). |
| 4 | note |
| 5 | om2 |
| 6 | fn main to int |
| 7 | n = ulong 4 |
| 8 | s = ulong 0 |
| 9 | for i ulong n unroll |
| 10 | s = add s 1 |
| 11 | end |
| 12 | ret int s |
| 13 | end |