Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/qualification/om2/sec/s3s4/ce-sized.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / qualification / om2 / sec / s3s4 / ce-sized.om` 23 lines ยท 665 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note Contract section 4 lines 105-106: an index into a SIZED array that is a constant after unrolling 3 note or folding is checked at compile time; inside the array it is accepted (no error 21) and runs. 4 note a = 1 11 21 31 written with put a i, read back with get a i and the folded get a sub 3 i. 5 note Twin ce-sized-rolled.om has the same stdout: oracle/s3s4/exp/ce-sized.out (python3). 6 om2 7 fn main to int 8 a = new ulong 4 0 9 for i ulong 4 unroll 10 put a i add mul i 10 1 11 end 12 s = ulong 0 13 for i ulong 4 unroll 14 s = add mul s 100 get a i 15 end 16 pu s 17 t = ulong 0 18 for i ulong 4 unroll 19 t = add mul t 100 get a sub 3 i 20 end 21 pu t 22 ret 0 23 end