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 / ce-sized-oob-fold.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Contract section 4 lines 105-106: the index add i 1 folds to the constant 4 in the i = 3 copy, a |
| 3 | note constant outside the SIZED array a4: error 21 at compile time (line 10, the put). |
| 4 | om2 |
| 5 | fn main to int |
| 6 | a4 = new ulong 4 7 |
| 7 | s = ulong 0 |
| 8 | for i ulong 4 unroll |
| 9 | s = add s get a4 i |
| 10 | put a4 add i 1 s |
| 11 | end |
| 12 | ret int s |
| 13 | end |