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 / om / gpu / inkling2 / emit-cli.om
| 1 | note SPDX-License-Identifier: AGPL-3.0-only |
| 2 | fn ikWrite w view ulong 4 to void |
| 3 | bytes = new uchar 16 0 |
| 4 | for i ulong 16 |
| 5 | put bytes i uchar and shr get w div i 4 mul rem i 4 8 255 |
| 6 | end |
| 7 | if ne write 1 bytes 0 16 16 |
| 8 | exit 4 |
| 9 | end |
| 10 | end |
| 11 | fn main to int |
| 12 | arg = new uchar 2 0 |
| 13 | if ne argcnt 2 |
| 14 | ret 2 |
| 15 | end |
| 16 | if ne argread 1 arg 0 2 1 |
| 17 | ret 2 |
| 18 | end |
| 19 | kind = get arg 0 |
| 20 | if not ikKernel kind |
| 21 | ret 2 |
| 22 | end |
| 23 | ikDone |
| 24 | ret 0 |
| 25 | end |