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