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/core/rsi/tests/reuse-eval/judge-protocol.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 / core / rsi / tests / reuse-eval / judge-protocol.om` 175 lines ยท 2427 bytes Raw Blame History 1 note units: sha256 ref judge 2 note needs: arm 3 note SPDX-License-Identifier: Apache-2.0 4 text JPMODES "fullwrongechobadqshortstall" 5 fn jpset off ulong n ulong rep ulong a ulong to void 6 jdsclr 8 7 for i ulong n 8 jdsc 8 get JPMODES add off i 9 end 10 put JDC 10 a 11 put JDC 11 0 12 put JDC 12 rep 13 put JDC 16 JDNONE 14 put JDC 17 JDNONE 15 put JDC 19 1 16 jdcnt0 17 jdctsyn 16 1 18 end 19 fn jpviolation off ulong n ulong rep ulong code ulong to int 20 jpset off n rep 1 21 e = jdpgroup 0 get JDK 0 22 if ne e 0 23 ret 21 24 end 25 if ne get JDA 15 1 26 ret 22 27 end 28 if ne get JDC 9 code 29 ret 23 30 end 31 if ne get JDC 18 add 512 code 32 ret 24 33 end 34 if ne get JDA 1 get JDK 0 35 ret 25 36 end 37 x = jdcload 1 rep 0 38 if ne x mul get JDK 0 16 39 ret 26 40 end 41 if ne get JDM add JDLOGW 5 JDNONE 42 ret 27 43 end 44 if ne get JDM add JDLOGW 21 sub JDNONE 1 45 ret 28 46 end 47 if ne get JDM add JDLOGW 28 0 48 ret 29 49 end 50 ret 0 51 end 52 fn main to int 53 if ne argcnt 3 54 ret 2 55 end 56 b = jdsarg 4 1 57 b = jdsarg 5 2 58 jdsdsh 7 59 jdsdsh 9 60 jdsdsh 10 61 jdsdsh 11 62 jdsdsh 12 63 jdsdsh 13 64 jpset 0 4 0 1 65 e = jdpgroup 0 get JDK 0 66 if ne e 0 67 ret 1 68 end 69 if ne get JDA 1 0 70 ret 3 71 end 72 if ne get JDA 0 10 73 ret 4 74 end 75 x = jdcload 1 0 0 76 if ne x mul get JDK 0 16 77 ret 5 78 end 79 if ne get JDM add JDLOGW 15 2 80 ret 6 81 end 82 if ne get JDM add JDLOGW 31 1 83 ret 7 84 end 85 if ne get JDM add JDLOGW 24 1 86 ret 8 87 end 88 if eq get JDM add JDLOGW 28 0 89 ret 9 90 end 91 jdspath 0 4 JWPLOG 8 92 y = jdldw 0 JDLOGW 16 93 if ne y 16 94 ret 10 95 end 96 if ne get JDM add JDLOGW 10 0 97 ret 11 98 end 99 if ne get JDM add JDLOGW 11 get JDK 0 100 ret 12 101 end 102 if eq get JDM add JDLOGW 8 0 103 ret 13 104 end 105 jdscp 0 4 106 jdsc 0 47 107 textpath = new uchar 16 0 108 put textpath 0 115 109 put textpath 1 116 110 put textpath 2 97 111 put textpath 3 116 112 put textpath 4 115 113 put textpath 5 45 114 put textpath 6 49 115 put textpath 7 45 116 put textpath 8 48 117 put textpath 9 45 118 put textpath 10 103 119 put textpath 11 48 120 put textpath 12 48 121 put textpath 13 46 122 put textpath 14 99 123 put textpath 15 116 124 for i ulong 16 125 jdsc 0 get textpath i 126 end 127 jdsc 0 114 128 y = jdldw 0 JDLOGW 34 129 if ne y 34 130 ret 14 131 end 132 if ne get JDM add JDLOGW 1 2 133 ret 15 134 end 135 if ne get JDM add JDLOGW 2 17 136 ret 16 137 end 138 if ne get JDM add JDLOGW 3 23 139 ret 17 140 end 141 for i ulong 30 142 if ne get JDM add add JDLOGW 4 i 0 143 ret 18 144 end 145 end 146 jpset 4 5 1 1 147 e = jdpgroup 0 get JDK 0 148 if ne e 0 149 ret 30 150 end 151 if ne get JDA 14 10 152 ret 31 153 end 154 jpset 9 4 2 0 155 e = jdpgroup 0 get JDK 0 156 if ne e 0 157 ret 32 158 end 159 if ne get JDA 1 0 160 ret 33 161 end 162 e = jpviolation 13 4 3 2 163 if ne e 0 164 ret e 165 end 166 e = jpviolation 17 5 4 1 167 if ne e 0 168 ret e 169 end 170 e = jpviolation 22 5 5 3 171 if ne e 0 172 ret e 173 end 174 ret 0 175 end