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

17 lines · 456 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note Contract section 4 line 90 and erratum E7: a break whose innermost loop is a ROLLED loop nested in an
3note unrolled body is allowed and leaves the rolled loop. Each of the 4 copies adds 1 once: exit 4.
4note Twins unroll-break-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
11break
12end
13s = add s 1
14end
15end
16ret int s
17end