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