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 / seed / omc / sites / found-xhreq-3.om

48 lines · 1386 bytes Raw Blame History
1note sites: found by a one-token change of a tracked program (41 to 120 lines); reaches the omc error site in xhreq (code 9)
2note Host only: every allowed UVM request uses an invalid fd, never a GPU.
3global data uchar 9280
4global status uchar 4
5text msg "PASS bounded native UVM requests\n"
6fn ck yes bool to void
7if not yes
8exit int 80
9end
10end
11fn bad k int to long
12if eq k 0
13ret uvmctl neg -1 1 uint 33 data 0 9263
14end
15if eq k 1
16ret uvmctl neg int 1 uint 33 data 0 9265
17end
18if eq k 2
19ret uvmctl neg int 1 uint 33 data 17 9264
20end
21ret uvmctl neg int 1 uint 75 data 18446744073709551615 8
22end
23fn main to int
24ck eq uvmctl neg int 1 uint 805306369 data 8 16 neg long 9
25ck eq uvmctl neg int 1 uint 75 data 8 8 neg long 9
26ck eq uvmctl neg int 1 uint 37 data 8 40 neg long 9
27ck eq uvmctl neg int 1 uint 38 data 8 20 neg long 9
28ck eq uvmctl neg int 1 uint 25 data 8 32 neg long 9
29ck eq uvmctl neg int 1 uint 26 data 8 20 neg long 9
30ck eq uvmctl neg int 1 uint 27 data 8 56 neg long 9
31ck eq uvmctl neg int 1 uint 28 data 8 28 neg long 9
32ck eq uvmctl neg int 1 uint 33 data 8 9264 neg long 9
33ck eq uvmctl neg int 1 uint 34 data 8 24 neg long 9
34ck eq add uvmctl neg int 1 uint 73 data 8 24 10 1
35for k int 4
36p = fork
37ck ge p 0
38if eq p 0
39r = bad k
40exit int 80
41end
42ck eq waitpid int p status 0 4 0 p
43ck eq get status 0 0
44ck eq get status 1 103
45end
46ck eq write 1 msg 0 len msg long len msg
47ret 0
48end