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/g5a.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 / g5a.om` 38 lines ยท 579 bytes Raw Blame History 1 om2 diag 2 note gate-pools 5: requires eq len P 0 is kept (rule=runtime) and holds before the grow, fails after it. 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 f k ulong to ulong 28 requires eq len P 0 29 ret k 30 end 31 fn main to int 32 x = f 1 33 pnum x 34 r = enlarge P ulong 8 35 x = f 2 36 pnum x 37 ret 0 38 end