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-write-i.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Contract section 4 line 89: a write to i in an unrolled body is error 7 (line 7, the i = 2). |
| 3 | om2 |
| 4 | fn main to int |
| 5 | s = ulong 0 |
| 6 | for i ulong 4 unroll |
| 7 | i = 2 |
| 8 | s = add s i |
| 9 | end |
| 10 | ret int s |
| 11 | end |