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 / fnmode-dec.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Decimal twin of fnmode-hex.om (values from Wolfram, wolfram.txt queries tokens and tokens2). |
| 3 | om2 |
| 4 | const KM ulong 255 |
| 5 | fn f a ulong to ulong |
| 6 | b = new uchar 16 0 |
| 7 | put b 15 uchar and a KM |
| 8 | k = ulong 0 |
| 9 | while lt k 3 bound 10 |
| 10 | k = add k 1 |
| 11 | end |
| 12 | if eq k 0 |
| 13 | trap 13 |
| 14 | end |
| 15 | ret add ulong get b 15 k |
| 16 | end |