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/omc/tests/pools/g5b.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 / omc / tests / pools / g5b.om` 36 lines ยท 555 bytes Raw Blame History 1 om2 diag 2 note gate-pools 5: invariant le i len P is kept (rule=runtime): true for i 0..8, false at 9. 3 global P ulong * 4 global ob uchar 24 5 fn pnum v ulong to void 6 put ob 23 10 7 i = ulong 23 8 x = v 9 go = true 10 while go bound 21 11 i = sub i 1 12 put ob i uchar add rem x 10 48 13 x = div x 10 14 go = ne x 0 15 end 16 k = write 1 ob i sub 24 i 17 end 18 fn plong v long to void 19 if lt v 0 20 put ob 0 uchar 45 21 k = write 1 ob 0 1 22 pnum ulong neg v 23 else 24 pnum ulong v 25 end 26 end 27 fn main to int 28 r = enlarge P ulong 8 29 i = ulong 0 30 while lt i 12 31 invariant le i len P 32 pnum i 33 i = add i 1 34 end 35 ret 0 36 end