interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / rung4 / tests / h_poolhost.om

15 lines · 368 bytes Raw Blame History
1note run-time pools, host refusal (run under prlimit --as=268435456): enlarge asks for 1 GiB, the host refuses
2note (-12, ENOMEM); the pool is unchanged and the program goes on: a smaller enlarge then succeeds
3global P uchar *
4fn main to int
5r = enlarge P 1073741824
6if ne len P 0
7ret 1
8end
9s = enlarge P 4096
10if ne s 0
11ret 2
12end
13put P 4095 9
14ret int sub long 0 r
15end