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