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 / omc / sites / found-mnew-3.om

25 lines · 687 bytes Raw Blame History
1note sites: found by a one-token or one-line change of a tracked program; reaches the omc error site in mnew (code 9)
2note White-box boundary fixture: compiler's generation ceiling replaced with 3 for this test only.
3note Uses the same emitted vacancy/retirement branch as the real 55-bit ceiling.
4text passed "PASS generation ceiling, retirement and final exhaustion\n"
5fn main to int
6for slot long 128
7for gen long 3
8h = mapnew neg int 1 0 4096 3 34
9expected = add mul add gen 1 256 add slot 1
10if ne h expected
11ret 1
12end
13if ne mapdrop h 0
14ret 2
15end
16end
17end
18if ne mapnew neg int 1 0 4096 3 int neg long 24
19ret 3
20end
21if ne write 1 passed 0 len passed long len passed
22ret 4
23end
24ret 0
25end