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 / qualification / om2 / sec / s0s2 / s2hex / hex-max.om

30 lines · 728 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note omegese-om2.md 2 lines 53-55: 0x then 1..16 digits 0-9a-f, value unsigned, typed by the place
3note under the decimal range rule. Maxima of every integer type, 0x0, 16 digits with leading zeros,
4note and all sixteen digits. Expected stdout: oracle/s0s2/oracle.py (hex_max). Used with lib/putu.om.
5om2
6fn main to int
7a = uchar 0xff
8putu ulong a
9b = ushort 0xffff
10putu ulong b
11c = uint 0xffffffff
12putu ulong c
13d = ulong 0xffffffffffffffff
14putu d
15e = byte 0x7f
16putu ulong e
17f = short 0x7fff
18putu ulong f
19g = int 0x7fffffff
20putu ulong g
21h = long 0x7fffffffffffffff
22putu ulong h
23z = ulong 0x0
24putu z
25y = uchar 0x00000000000000ff
26putu ulong y
27w = ulong 0x0123456789abcdef
28putu w
29ret 0
30end