interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / qualification / om2 / sec / s3s4 / ce-sized-oob-fold-rolled.om

14 lines · 415 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note TWIN of ce-sized-oob-fold.om with unroll removed (OM-2 unit).
3note Contract section 4 lines 105-106: the index add i 1 folds to the constant 4 in the i = 3 copy, a
4note constant outside the SIZED array a4: error 21 at compile time (line 10, the put).
5om2
6fn main to int
7a4 = new ulong 4 7
8s = ulong 0
9for i ulong 4
10s = add s get a4 i
11put a4 add i 1 s
12end
13ret int s
14end