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-lateglob.om

19 lines · 479 bytes Raw Blame History
1note S5 scrub and a global declared after a function that scrubs: that function is compiled before the
2note global exists, so the global must not take a pinned register its scrub would clear and not restore
3note (omc 0d7f2f42 pinned it: the in-range read after the call trapped 3, exit 103). Exit 0 is the pass.
4om2
5fn clean to ulong
6k = scrub 64
7ret ulong k
8end
9global g ulong 5000
10fn main to int
11j = ulong 4999
12put g j 7
13k = clean
14y = get g j
15if ne y 7
16ret 2
17end
18ret int k
19end