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 / qualification / security673 / pure-launch.om

26 lines · 624 bytes Raw Blame History
1note Trusted launch adapter for strict-profile tests. Invoke only as a fresh supervised child.
2note Failure may already have restricted this process; report the error and exit, never fall back.
3global path uchar 1024
4global packet uchar 4096
5text error "PURE_LAUNCH_REFUSED\n"
6fn main to int
7if ne argcnt 2
8ret 90
9end
10n = argread 1 path 0 len path
11if or le n 0 gt n 1024
12ret 90
13end
14put packet 0 1
15put packet 2 uchar and ulong n 255
16put packet 3 uchar shr ulong n 8
17for i ulong ulong n
18put packet add i 4 get path i
19end
20r = execpure packet 0 add 4 ulong n
21s = write 2 error 0 len error
22if lt r 0
23ret int neg r
24end
25ret 99
26end