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

19 lines · 492 bytes Raw Blame History
1note S5 scrub inside an inline function written before a global. pinshut is set when the body pass begins
2note any fn, an inline one too, so the global takes no pin and its reads use MOVZ/MOVK; under omc 0d7f2f42
3note (no pinshut) the inline body, compiled at its call site after the global, restored the pin. Exit 0.
4om2
5fn clean to ulong inline
6k = scrub 64
7ret ulong k
8end
9global g ulong 5000
10fn main to int
11j = ulong 4999
12put g j 5
13k = clean
14y = get g j
15if ne y 5
16ret 2
17end
18ret int k
19end