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/g8a.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 / g8a.om` 44 lines ยท 806 bytes Raw Blame History 1 note gate-pools 8: run under prlimit --as=`268435456`: an 8 GiB enlarge returns -12, the pool is unchanged, 2 note the program goes on and ends with its own status 7. Without the limit the first 8 GiB enlarge gives 0. 3 global P ulong * 4 global Q ulong * 5 global ob uchar 24 6 fn pnum v ulong to void 7 put ob 23 10 8 i = ulong 23 9 x = v 10 go = true 11 while go bound 21 12 i = sub i 1 13 put ob i uchar add rem x 10 48 14 x = div x 10 15 go = ne x 0 16 end 17 k = write 1 ob i sub 24 i 18 end 19 fn plong v long to void 20 if lt v 0 21 put ob 0 uchar 45 22 k = write 1 ob 0 1 23 pnum ulong neg v 24 else 25 pnum ulong v 26 end 27 end 28 fn main to int 29 r = enlarge P ulong 1000 30 plong r 31 put P 5 42 32 r = enlarge P ulong `1073741824` 33 plong r 34 pnum len P 35 pnum get P 5 36 r = enlarge Q ulong `1073741824` 37 plong r 38 pnum len Q 39 r = enlarge P ulong 2000 40 plong r 41 pnum len P 42 pnum get P 5 43 ret 7 44 end