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 / om2 / selftest / cat.om

20 lines · 277 bytes Raw Blame History
1note Harness self-test program (correct): copy standard input to standard output unchanged.
2fn main to int
3b = new uchar 4096 0
4go = true
5while go
6r = read 0 b 0 4096
7if lt r 0
8ret 91
9end
10if eq r 0
11go = false
12else
13w = write 1 b 0 ulong r
14if ne w r
15ret 92
16end
17end
18end
19ret 0
20end