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

29 lines · 405 bytes Raw Blame History
1om2
2note hex literals take the place's type under the decimal range rule
3fn main to int
4a = ulong 0xffffffffffffffff
5if ne a 18446744073709551615
6ret 1
7end
8b = uint 0xffffffff
9if ne b 4294967295
10ret 2
11end
12c = long 0x7fffffffffffffff
13if ne c 9223372036854775807
14ret 3
15end
16d = uchar 0x0
17if ne d 0
18ret 4
19end
20e = ushort 0x00ff
21if ne e 255
22ret 5
23end
24f = ulong 0xdeadbeef
25if ne f 3735928559
26ret 6
27end
28ret 0
29end