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

136 lines · 2354 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note spec/omegese-om2.md section 2 lines 53-58 (#745): 64 hex literals, eight per integer type (0, 1, the type maximum,
3note the sign-bit or half value, four random values), each printed in decimal by lib putu. Values and
4note spellings from Wolfram (wolfram.txt, query pairs). pairs-dec.om is the decimal spelling: same bytes.
5om2
6fn main to int
7a = uchar 0x0
8putu ulong a
9a = uchar 0x1
10putu ulong a
11a = uchar 0xff
12putu ulong a
13a = uchar 0x80
14putu ulong a
15a = uchar 0xaa
16putu ulong a
17a = uchar 0x99
18putu ulong a
19a = uchar 0x4b
20putu ulong a
21a = uchar 0x24
22putu ulong a
23b = ushort 0x0
24putu ulong b
25b = ushort 0x1
26putu ulong b
27b = ushort 0xffff
28putu ulong b
29b = ushort 0x8000
30putu ulong b
31b = ushort 0x5463
32putu ulong b
33b = ushort 0x83b4
34putu ulong b
35b = ushort 0x1e97
36putu ulong b
37b = ushort 0x958c
38putu ulong b
39c = uint 0x0
40putu ulong c
41c = uint 0x1
42putu ulong c
43c = uint 0xffffffff
44putu ulong c
45c = uint 0x80000000
46putu ulong c
47c = uint 0x50085ac
48putu ulong c
49c = uint 0x59fbb1aa
50putu ulong c
51c = uint 0xbbcfd2ed
52putu ulong c
53c = uint 0xe9149ee5
54putu ulong c
55d = ulong 0x0
56putu d
57d = ulong 0x1
58putu d
59d = ulong 0xffffffffffffffff
60putu d
61d = ulong 0x8000000000000000
62putu d
63d = ulong 0xd3068ea0db75f80d
64putu d
65d = ulong 0xe850d7d7b97a6e55
66putu d
67d = ulong 0x1760f0396488474c
68putu d
69d = ulong 0x549e8cdb54a78ed7
70putu d
71e = byte 0x0
72putu ulong e
73e = byte 0x1
74putu ulong e
75e = byte 0x7f
76putu ulong e
77e = byte 0x40
78putu ulong e
79e = byte 0x37
80putu ulong e
81e = byte 0x1
82putu ulong e
83e = byte 0x23
84putu ulong e
85e = byte 0x24
86putu ulong e
87f = short 0x0
88putu ulong f
89f = short 0x1
90putu ulong f
91f = short 0x7fff
92putu ulong f
93f = short 0x4000
94putu ulong f
95f = short 0x7316
96putu ulong f
97f = short 0x49a0
98putu ulong f
99f = short 0x6f25
100putu ulong f
101f = short 0x59e2
102putu ulong f
103g = int 0x0
104putu ulong g
105g = int 0x1
106putu ulong g
107g = int 0x7fffffff
108putu ulong g
109g = int 0x40000000
110putu ulong g
111g = int 0x1d4635b7
112putu ulong g
113g = int 0x37d0fc
114putu ulong g
115g = int 0x1dc7eab2
116putu ulong g
117g = int 0x797c9720
118putu ulong g
119h = long 0x0
120putu ulong h
121h = long 0x1
122putu ulong h
123h = long 0x7fffffffffffffff
124putu ulong h
125h = long 0x4000000000000000
126putu ulong h
127h = long 0x20b9be2d8e53288a
128putu ulong h
129h = long 0x494a37e8475d1f0b
130putu ulong h
131h = long 0x5a29e12b10ae58d6
132putu ulong h
133h = long 0x393a4d64aa1c2c1a
134putu ulong h
135ret 0
136end