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_grow.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_grow.om` 26 lines ยท 460 bytes Raw Blame History 1 note run-time pools: a grow inside a block (while, if), doubling as the index reaches the length; every 2 note value written before a grow is read back after the later grows moved the pool 3 global P ulong * 4 fn main to int 5 i = ulong 0 6 while lt i 100000 7 if ge i len P 8 r = enlarge P add mul len P 2 1 9 if ne r 0 10 ret 2 11 end 12 end 13 put P i i 14 i = add i 1 15 end 16 t = ulong 0 17 j = ulong 0 18 while lt j 100000 19 t = add t get P j 20 j = add j 1 21 end 22 if ne t `4999950000` 23 ret 1 24 end 25 ret 7 26 end