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 / exec-child.om

24 lines · 473 bytes Raw Blame History
1note A real executed consumer. Extra descriptors must be absent, assigned stdin/stdout must work.
2global data uchar 16
3text input "public-input"
4text output "public-output"
5fn main to int
6if ne read 3 data 0 1 neg long 9
7ret 42
8end
9if ne read 65537 data 0 1 neg long 9
10ret 43
11end
12if ne read 0 data 0 len input long len input
13ret 44
14end
15for i ulong len input
16if ne get data i get input i
17ret 45
18end
19end
20if ne write 1 output 0 len output long len output
21ret 46
22end
23ret 0
24end