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 / ng / a64 / tests / ref / mem.om

20 lines · 605 bytes Raw Blame History
1note ref/mem.om: omc reference of mkir fixture mem (prints ok, exit = (s + write's count) low byte).
2note Omega passes no global as an argument (error 19) and writes no chk.bounds with e = 2, so the fixture's
3note fill(REF src) is inline here and its chk.bounds src 298 2 (which passes) has no counterpart.
4global src uchar 300
5text msg "ok\n"
6fn main to int
7for i ulong 300
8put src i uchar and mul i 7 255
9end
10b = new ulong 600 0
11for i ulong 300
12put b add i 300 add ulong get src i i
13end
14s = ulong 0
15for i ulong 600
16s = add s mul get b i add i 1
17end
18w = write 1 msg 0 3
19ret int and add s ulong w 255
20end