omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
omega-harness / coder / eval / selftest / src / st7-cheat.om
| 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 |