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/examples/om2_part_trap.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 / examples / om2_part_trap.om` 17 lines ยท 332 bytes Raw Blame History 1 note om2_part_trap: part A off n checks off + n <= len A when it runs; past the end traps 3, exit 103 2 om2 3 text before "before\n" 4 fn sum a view uint * to ulong 5 s = ulong 0 6 for i ulong len a 7 s = add s ulong get a i 8 end 9 ret s 10 end 11 fn main to int 12 k = write 1 before 0 len before 13 a = new uint 4 1 14 o = ulong 3 15 t = sum part a o 2 16 ret 0 17 end