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 / apish-blk.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note gpu/nvidia/checks/apish-blk.om: the block and block0 comparisons of CUDApp tests/api_shells_diff.c, for |
| 3 | note apishb (gpu/nvidia/om/api/apish_blk.om), which has its own refb and so its own check. w is the first 128 of |
| 4 | note the test's bytes i, x its 512 bytes i * 17. Composed before apish-lib.om. |
| 5 | text t_name "APISH-BLK" |
| 6 | text l_block "block" |
| 7 | text l_block0 "block0" |
| 8 | fn aprun to void |
| 9 | w = new uchar 128 0 |
| 10 | for i ulong 128 |
| 11 | put w i uchar i |
| 12 | end |
| 13 | x = new uchar 512 0 |
| 14 | for i ulong 512 |
| 15 | put x i uchar and mul i 17 255 |
| 16 | end |
| 17 | as6 l_block apishb w x 0x3f80 |
| 18 | as6 l_block0 apishb w x 0 |
| 19 | end |