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-note.om

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