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-continue-nested.om

17 lines · 453 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note Contract section 4 line 90 and erratum E7: a continue whose innermost loop is a ROLLED loop nested in an
3note unrolled body is allowed. Each of the 4 copies adds 1 for j = 0 and j = 2: exit 8.
4note Twins unroll-continue-nested-rolled.om / -om1.om, same expectation (oracle/s3s4/exp).
5om2
6fn main to int
7s = ulong 0
8for i ulong 4 unroll
9for j ulong 3
10if eq j 1
11continue
12end
13s = add s 1
14end
15end
16ret int s
17end