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