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 / host / tests / genlimit.om

24 lines · 568 bytes Raw Blame History
1note White-box boundary fixture: compiler's generation ceiling replaced with 3 for this test only.
2note Uses the same emitted vacancy/retirement branch as the real 55-bit ceiling.
3text passed "PASS generation ceiling, retirement and final exhaustion\n"
4fn main to int
5for slot long 128
6for gen long 3
7h = mapnew neg int 1 0 4096 3 34
8expected = add mul add gen 1 256 add slot 1
9if ne h expected
10ret 1
11end
12if ne mapdrop h 0
13ret 2
14end
15end
16end
17if ne mapnew neg int 1 0 4096 3 34 neg long 24
18ret 3
19end
20if ne write 1 passed 0 len passed long len passed
21ret 4
22end
23ret 0
24end