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

24 lines · 791 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note OM-1 TWIN of ce-sized.om (unroll removed, om2 line made a note) for the pinned compiler 734f0a39.
3note Contract section 4 lines 105-106: an index into a SIZED array that is a constant after unrolling
4note or folding is checked at compile time; inside the array it is accepted (no error 21) and runs.
5note a = 1 11 21 31 written with put a i, read back with get a i and the folded get a sub 3 i.
6note Twin ce-sized-rolled.om has the same stdout: oracle/s3s4/exp/ce-sized.out (python3).
7note OM-1 unit: this line replaces the om2 line
8fn main to int
9a = new ulong 4 0
10for i ulong 4
11put a i add mul i 10 1
12end
13s = ulong 0
14for i ulong 4
15s = add mul s 100 get a i
16end
17pu s
18t = ulong 0
19for i ulong 4
20t = add mul t 100 get a sub 3 i
21end
22pu t
23ret 0
24end