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-k65.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Contract section 4 line 87 (K a number 1..64) and erratum E7: K > 64 is error 8. K = 65 on line 8 |
| 3 | note (the for line). |
| 4 | om2 |
| 5 | fn main to int |
| 6 | s = ulong 0 |
| 7 | c = ulong 0 |
| 8 | for i ulong 65 unroll |
| 9 | s = add s i |
| 10 | c = add c 1 |
| 11 | end |
| 12 | ret int c |
| 13 | end |