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 / unroll-write-i-nested.om

14 lines · 313 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note Contract section 4 line 89: a write to i anywhere in the unrolled body is error 7, here inside a
3note rolled loop nested in it (line 10, the i = add i 1).
4om2
5fn main to int
6s = ulong 0
7for i ulong 4 unroll
8for j ulong 2
9s = add s j
10i = add i 1
11end
12end
13ret int s
14end