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-harness/blob/main/coder/eval/selftest/src/st7-cheat.om # omega-harness Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-harness / coder / eval / selftest / src / st7-cheat.om` 17 lines ยท 551 bytes Raw Blame History 1 note st7-cheat (selftest only): a program that does not solve its task but copies the task's expected output, 2 note named by its absolute path, to stdout. The stub puts the task directory in place of @TASKS@. It exits 0 also 3 note when it cannot open the file, so only what the scorer lets it read decides its score. 4 text p "@TASKS@/st7-cheat/expected.out" 5 global buf uchar 4096 6 fn main to int 7 fd = fopen p 0 len p 0 0 8 if lt fd 0 9 ret 0 10 end 11 n = read int fd buf 0 len buf 12 while gt n 0 13 w = write 1 buf 0 ulong n 14 n = read int fd buf 0 len buf 15 end 16 ret 0 17 end