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/g2b.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 / g2b.om` 33 lines ยท 537 bytes Raw Blame History 1 note gate-pools 2: a number index past the length compiles (no error 21) and traps 3 at run time (put). 2 global P ulong * 3 global ob uchar 24 4 fn pnum v ulong to void 5 put ob 23 10 6 i = ulong 23 7 x = v 8 go = true 9 while go bound 21 10 i = sub i 1 11 put ob i uchar add rem x 10 48 12 x = div x 10 13 go = ne x 0 14 end 15 k = write 1 ob i sub 24 i 16 end 17 fn plong v long to void 18 if lt v 0 19 put ob 0 uchar 45 20 k = write 1 ob 0 1 21 pnum ulong neg v 22 else 23 pnum ulong v 24 end 25 end 26 fn main to int 27 r = enlarge P ulong 4 28 put P 3 6 29 pnum get P 3 30 put P 100 1 31 pnum get P 100 32 ret 0 33 end