Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/qualification/om2/selftest/cat.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / qualification / om2 / selftest / cat.om` 20 lines ยท 277 bytes Raw Blame History 1 note Harness self-test program (correct): copy standard input to standard output unchanged. 2 fn main to int 3 b = new uchar 4096 0 4 go = true 5 while go 6 r = read 0 b 0 4096 7 if lt r 0 8 ret 91 9 end 10 if eq r 0 11 go = false 12 else 13 w = write 1 b 0 ulong r 14 if ne w r 15 ret 92 16 end 17 end 18 end 19 ret 0 20 end