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/rung4/tests/t_pool.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 / rung4 / tests / t_pool.om` 30 lines ยท 544 bytes Raw Blame History 1 note run-time pools (OMEGESE 9.15, om4 subset): grown from 0 by enlarge, values kept, new elements 0, 2 note len a run-time value, a number index checked at run time, a smaller enlarge changes nothing 3 global P ulong * 4 global Q uchar * 5 fn main to int 6 if ne len P 0 7 ret 1 8 end 9 r = enlarge P 4 10 put P 3 40 11 s = long 0 12 s = enlarge P 1000 13 if ne s 0 14 ret 2 15 end 16 put P 999 2 17 r = enlarge Q 5000 18 put Q 4999 7 19 r = enlarge P 10 20 if ne len P 1000 21 ret 3 22 end 23 i = ulong 500 24 if ne get P i 0 25 ret 4 26 end 27 x = add get P 3 get P 999 28 x = add x ulong get Q 4999 29 ret int x 30 end