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

20 lines · 501 bytes Raw Blame History
1note S5 scrub, then a write and a read of a short global (length 100: a base pin only, its length check is
2note an immediate) declared after the scrubbing function. omc 0d7f2f42 pinned its base and the scrub left
3note it 0, so the put stored to an unmapped low address (SIGSEGV, exit 139) instead of the global. Exit 0 is
4note the pass.
5om2
6fn clean to ulong
7k = scrub 64
8ret ulong k
9end
10global s ulong 100
11fn main to int
12j = ulong 10
13k = clean
14put s j 9
15y = get s j
16if ne y 9
17ret 2
18end
19ret int k
20end