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/unroll-growth-rolled.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 / unroll-growth-rolled.om` 35 lines ยท 1104 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note Control for unroll-growth.om with unroll removed: the same body is valid OM-2 and runs; exit 3 note status oracle/s3s4 (python3): grow 5 mod 256. Shows the refusal is the word bound, not the body. 4 note Contract section 4 lines 109-111: a function's emitted words after unrolling are at most 65536, 5 note else error 14 (obligation=growth). Two nested unroll 64 loops make 4096 copies of a 12-statement 6 note body of unsigned ops on run-time values (each statement at least two instructions, so at least 7 note 98304 words). Each loop alone is within the 64-copy bound; the word bound refuses it. 8 note Twin unroll-growth-diag.om checks the om2 diag record. 9 om2 10 fn grow a ulong to ulong 11 x = a 12 s = add a 1 13 t = add a 2 14 u = add a 3 15 for i ulong 64 16 for j ulong 64 17 x = add mul x 3 add s add i j 18 s = xor s shr x 7 19 t = add t mul s x 20 u = xor u shl t 3 21 x = add x mul u 5 22 s = add s xor x t 23 t = xor t shr s 11 24 u = add u mul t 9 25 x = xor x add u s 26 s = mul s add x 1 27 t = add t xor u 13 28 u = xor u add s t 29 end 30 end 31 ret xor xor x s xor t u 32 end 33 fn main to int 34 ret int and grow 5 255 35 end