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-nest-om1.om

24 lines · 827 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note OM-1 TWIN of unroll-nest.om for the pinned compiler 734f0a39: same expected stdout.
3note Contract section 4 lines 87-92 and 105: nested unrolled loops, 8 x 8 = 64 copies of the inner body
4note with i and j bound to constants; the folded index add mul i 8 j into the 64-element array m is a
5note constant in range (no error 21). Removing unroll (twin unroll-nest-rolled.om) changes nothing.
6note Expected stdout: oracle/s3s4/exp/unroll-nest.out (python3, oracle/s3s4/oracle.py).
7note OM-1 unit: this line replaces the om2 line
8fn main to int
9m = new ulong 64 0
10f = ulong 14695981039346656037
11for i ulong 8
12for j ulong 8
13f = mul xor f add mul i 8 j 1099511628211
14put m add mul i 8 j add mul i 1000 j
15end
16end
17pu f
18g = ulong 0
19for k ulong 64
20g = add mul g 3 get m k
21end
22pu g
23ret 0
24end