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 / hex / places-dec.om

41 lines · 668 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note Decimal twin of places-hex.om (values from Wolfram, wolfram.txt query tokens).
3om2
4const KC uchar 200
5global g ulong 16
6fn rd t view uchar 8 to ulong
7ret ulong get t 7
8end
9fn wr s edit uchar 8 fresh to void
10put s 7 90
11end
12fn main to int
13a = new uchar 8 0
14wr a
15putu rd a
16put g 15 7
17putu get g 15
18putu ulong KC
19s = ulong 0
20for i ulong 4 unroll
21s = add s i
22end
23putu s
24k = ulong 0
25while lt k 100 bound 1000
26k = add k 1
27end
28putu k
29r = rotr uint 2147483649 31
30putu ulong r
31q = rotl ulong 9223372036854775808 1
32putu q
33f = f64 9007199254740993
34putu ulong f
35h = f32 16777217
36putu ulong h
37if eq k 0
38trap 14
39end
40ret int and k 42
41end