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 / tests / pools / g5c.om

34 lines · 542 bytes Raw Blame History
1om2
2note gate-pools 5: a constant index under unroll keeps its run-time check (length 8, copies 0..11).
3global P ulong *
4global ob uchar 24
5fn pnum v ulong to void
6put ob 23 10
7i = ulong 23
8x = v
9go = true
10while go bound 21
11i = sub i 1
12put ob i uchar add rem x 10 48
13x = div x 10
14go = ne x 0
15end
16k = write 1 ob i sub 24 i
17end
18fn plong v long to void
19if lt v 0
20put ob 0 uchar 45
21k = write 1 ob 0 1
22pnum ulong neg v
23else
24pnum ulong v
25end
26end
27fn main to int
28r = enlarge P ulong 8
29for j ulong 12 unroll
30put P j add j 1
31pnum get P j
32end
33ret 0
34end