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/aienux/blob/main/native/omega/allen/tests/code.om # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. 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 `aienux / native / omega / allen / tests / code.om` 58 lines ยท 1221 bytes Raw Blame History 1 text Wire "CODE 7 1/1 9 `3ce11e06` python print(1)\\n" 2 text Badwire "CODE 7 1/1 9 `3ce11e06` python print(2)\\n" 3 text Wrongjob "CODE 8 1/1 9 `3ce11e06` python print(1)\\n" 4 text Badnum "CODE `4294967296` 1/1 9 `3ce11e06` python print(1)\\n" 5 fn wireload to void 6 put Inlen 0 len Wire 7 for i ulong len Wire 8 put In i get Wire i 9 end 10 end 11 fn main to int 12 codebeg 7 13 check eq codestat 0 101 14 check eq missing 1 102 15 wireload 16 check codetake 103 17 check eq codestat 2 104 18 check eq get C 4 1 105 19 check codetake 106 20 check eq get C 4 1 107 21 check eq missing 0 108 22 put R 0 7 23 put R 1 1 24 check codeshow 7 109 25 check eq get R 6 1 110 26 put Inlen 0 len Wrongjob 27 for i ulong len Wrongjob 28 put In i get Wrongjob i 29 end 30 check not codetake 111 31 check eq codestat 2 112 32 put Inlen 0 len Badwire 33 for i ulong len Badwire 34 put In i get Badwire i 35 end 36 check not codetake 113 37 check eq get Code 6 49 114 38 codebeg 7 39 check codetake 115 40 check eq codestat 3 116 41 check not codeshow 7 117 42 codebeg 7 43 put Inlen 0 len Badnum 44 for i ulong len Badnum 45 put In i get Badnum i 46 end 47 check not codetake 118 48 check eq get C 4 0 119 49 wireload 50 put Inlen 0 sub len Wire 1 51 check not codetake 120 52 check eq get C 4 0 121 53 wireload 54 check codetake 122 55 put R 0 8 56 check not codeshow 7 123 57 ret int get Fails 0 58 end