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 / dec-max.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note OM-1 twin of s2hex/hex-max.om: the same values in decimal (OMEGESE.md 9.3), so the expected |
| 3 | note stdout of hex-max.om is also checked against the pinned OM-1 compiler. Used with lib/putu.om. |
| 4 | fn main to int |
| 5 | a = uchar 255 |
| 6 | putu ulong a |
| 7 | b = ushort 65535 |
| 8 | putu ulong b |
| 9 | c = uint 4294967295 |
| 10 | putu ulong c |
| 11 | d = ulong 18446744073709551615 |
| 12 | putu d |
| 13 | e = byte 127 |
| 14 | putu ulong e |
| 15 | f = short 32767 |
| 16 | putu ulong f |
| 17 | g = int 2147483647 |
| 18 | putu ulong g |
| 19 | h = long 9223372036854775807 |
| 20 | putu ulong h |
| 21 | z = ulong 0 |
| 22 | putu z |
| 23 | y = uchar 255 |
| 24 | putu ulong y |
| 25 | w = ulong 81985529216486895 |
| 26 | putu w |
| 27 | ret 0 |
| 28 | end |