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

12 lines · 312 bytes Raw Blame History
1note S5 scrub: n = 15 is not a multiple of 16: trap 3 (exit 103). Without the check the stores would run
2note from SP - 15 to SP + 1 and clear byte 0 of the array at SP, and f would give 0.
3om2
4fn f n ulong to int
5a = new uchar 16 255
6k = scrub n
7ret int add k long get a 0
8end
9fn main to int
10r = f 15
11ret r
12end