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 / om2 / s5 / scrub-chain.om

23 lines · 499 bytes Raw Blame History
1note S5 scrub reached through two calls, both compiled before a long global (length 5000 > 4095, so it
2note would pin base and length) that main reads after the chain returns. omc 0d7f2f42 pinned it and the
3note scrub cleared both pins without restoring them: trap 3, exit 103. Exit 0 is the pass.
4om2
5fn deep to ulong
6k = scrub 64
7ret ulong k
8end
9fn mid to ulong
10k = deep
11ret k
12end
13global g ulong 5000
14fn main to int
15j = ulong 4999
16put g j 11
17k = mid
18y = get g j
19if ne y 11
20ret 2
21end
22ret int k
23end