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 / gpu / nvidia / checks / arest-launch.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note gpu/nvidia/checks/arest-launch.om: arlaunch (gpu/nvidia/om/apirest/launch.om); Q is its 16 q words, the output its 20 words. Composed before arest.om. |
| 3 | text t_name "AREST-LAUNCH" |
| 4 | text t_au "launch" |
| 5 | fn arop q view ulong 64 nq ulong ny ulong o edit ulong 128 to ulong |
| 6 | if or ne nq 16 ne ny 20 |
| 7 | ckbad |
| 8 | end |
| 9 | a = new ulong 16 0 |
| 10 | for i ulong 16 |
| 11 | put a i get q i |
| 12 | end |
| 13 | y = new uint 20 0x5a5a5a5a |
| 14 | r = arlaunch a y |
| 15 | for i ulong 20 |
| 16 | put o i ulong get y i |
| 17 | end |
| 18 | ret r |
| 19 | end |