interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / gpu / nvidia / checks / lib-om2.om

18 lines · 487 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note gpu/nvidia/checks/lib-om2.om: what lib.om offers a check composed in an OM-2 program (one whose first unit
3note starts with om2): words that take a text, which OM-1 cannot pass (no unsized view). Composed after lib.om.
4note field i is the text t
5fn ckis i ulong t view uchar * to bool
6if ge i get ck_n 2
7ret false
8end
9if ne cklen i len t
10ret false
11end
12for j ulong len t bound 4096
13if ne ckch i j ulong get t j
14ret false
15end
16end
17ret true
18end