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/benchmarks-mv/blob/main/native/neuralese/score.om # benchmarks-mv Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS. 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 `benchmarks-mv / native / neuralese / score.om` 360 lines ยท 5356 bytes Raw Blame History 1 om2 2 note NL6 independent raw output evidence checker, frozen design `8ee0a494`. 3 note No candidate summary, expected_bits, PASS flag or authorization claim is read. 4 note Trusted reference files must be judge-owned and committed before prediction reveal. 5 note mode1 four ASCII bits plus LF per row; mode2 exact raw journal; mode3 NL4 typed record. 6 note mode3 op1 increment, op2 double, op3 identity; matches NL4 boundary contract. 7 const CAP ulong 65536 8 global refbuf uchar CAP 9 global obsbuf uchar CAP 10 global lens ulong 2 11 global vals long 20 12 global state ulong 3 13 text prefix "NL6 total=" 14 text middle " correct=" 15 text last " wrong=" 16 text lf "\n" 17 text bad "NL6 INVALID\n" 18 text fail "NL6 FAIL\n" 19 text pass "NL6 PASS\n" 20 text magic "NL4R1 " 21 text refmag "NL4REF1 " 22 fn emit a view uchar * n ulong to void 23 p = ulong 0 24 while lt p n bound 65536 25 k = write 1 a p sub n p 26 if le k 0 27 exit 93 28 end 29 p = add p ulong k 30 end 31 end 32 fn number v ulong to void 33 b = new uchar 20 0 34 p = ulong 20 35 x = v 36 while true bound 20 37 p = sub p 1 38 put b p uchar add rem x 10 48 39 x = div x 10 40 if eq x 0 41 break 42 end 43 end 44 q = p 45 while lt q 20 bound 20 46 k = write 1 b q sub ulong 20 q 47 if le k 0 48 exit 93 49 end 50 q = add q ulong k 51 end 52 end 53 fn invalid to void 54 emit bad len bad 55 exit 90 56 end 57 fn badout to int 58 emit fail len fail 59 ret 1 60 end 61 fn load which ulong arg ulong to void 62 path = new uchar 4096 0 63 n = argread arg path 0 len path 64 if le n 0 65 invalid 66 end 67 fd = fopen path 0 ulong n 524288 0 68 if lt fd 0 69 invalid 70 end 71 pos = ulong 0 72 while lt pos CAP bound 65536 73 k = long 0 74 if eq which 0 75 k = read int fd refbuf pos sub CAP pos 76 else 77 k = read int fd obsbuf pos sub CAP pos 78 end 79 if lt k 0 80 z = fclose int fd 81 invalid 82 end 83 if eq k 0 84 break 85 end 86 pos = add pos ulong k 87 end 88 if eq pos CAP 89 z = fclose int fd 90 invalid 91 end 92 z = fclose int fd 93 if ne z 0 94 invalid 95 end 96 put lens which pos 97 end 98 fn byteat which ulong pos ulong to uchar 99 if ge pos get lens which 100 invalid 101 end 102 if eq which 0 103 ret get refbuf pos 104 end 105 ret get obsbuf pos 106 end 107 fn report total ulong correct ulong to void 108 emit prefix len prefix 109 number total 110 emit middle len middle 111 number correct 112 emit last len last 113 number sub total correct 114 emit lf len lf 115 end 116 fn bits to int 117 n = get lens 0 118 if or eq n 0 ne rem n 5 0 119 invalid 120 end 121 if ne get lens 1 n 122 ret badout 123 end 124 cnt = div n 5 125 good = ulong 0 126 for row ulong cnt 127 same = true 128 p = mul row 5 129 for col ulong 4 130 a = byteat 0 add p col 131 b = byteat 1 add p col 132 if and ne a 48 ne a 49 133 invalid 134 end 135 if and ne b 48 ne b 49 136 invalid 137 end 138 if ne a b 139 same = false 140 end 141 end 142 if or ne byteat 0 add p 4 10 ne byteat 1 add p 4 10 143 invalid 144 end 145 if same 146 good = add good 1 147 end 148 end 149 report cnt good 150 if ne cnt good 151 ret badout 152 end 153 emit pass len pass 154 ret 0 155 end 156 fn journal to int 157 n = get lens 0 158 if eq n 0 159 invalid 160 end 161 if ne n get lens 1 162 ret badout 163 end 164 same = true 165 for i ulong n 166 if ne byteat 0 i byteat 1 i 167 same = false 168 end 169 end 170 correct = ulong 0 171 if same 172 correct = 1 173 end 174 report 1 correct 175 if not same 176 ret badout 177 end 178 emit pass len pass 179 ret 0 180 end 181 note Strict bounded signed decimal parser. Values limited to +/-`1000000` to avoid overflow. 182 fn getnum which ulong to long 183 p = get state 0 184 n = get lens which 185 if ge p n 186 invalid 187 end 188 negv = false 189 if eq byteat which p 45 190 negv = true 191 p = add p 1 192 end 193 start = p 194 v = long 0 195 while lt p n bound 65536 196 c = byteat which p 197 if or eq c 32 eq c 10 198 break 199 end 200 if or lt c 48 gt c 57 201 invalid 202 end 203 v = add mul v 10 long sub c 48 204 if gt v `1000000` 205 invalid 206 end 207 p = add p 1 208 end 209 if eq p start 210 invalid 211 end 212 if ge p n 213 invalid 214 end 215 if and gt sub p start 1 eq byteat which start 48 216 invalid 217 end 218 if and negv eq v 0 219 invalid 220 end 221 put state 0 add p 1 222 put state 1 ulong byteat which p 223 if negv 224 ret neg v 225 end 226 ret v 227 end 228 fn parse which ulong to void 229 n = ulong 6 230 if eq which 0 231 n = 8 232 end 233 if lt get lens which n 234 invalid 235 end 236 for i ulong n 237 c = uchar 0 238 if eq which 0 239 c = get refmag i 240 else 241 c = get magic i 242 end 243 if ne byteat which i c 244 invalid 245 end 246 end 247 put state 0 n 248 for j ulong 10 249 v = getnum which 250 put vals add mul which 10 j v 251 want = ulong 32 252 if eq j 9 253 want = 10 254 end 255 if ne get state 1 want 256 invalid 257 end 258 end 259 if ne get state 0 get lens which 260 invalid 261 end 262 end 263 note Reference fields decision op lhs rhs rank dim0 dim1 elements effects result. 264 note Reference result must be zero reserved; executed result is independently recomputed. 265 note Permitted scalar op1 increment, op2 double, op3 identity. Metadata is independently checked. 266 fn boundary to int 267 parse 0 268 parse 1 269 if ne get vals 9 0 270 invalid 271 end 272 if lt get vals 0 0 273 invalid 274 end 275 for j ulong 9 276 if ne get vals j get vals add j 10 277 ret badout 278 end 279 end 280 if ne get vals 0 0 281 for j ulong 9 282 if ne get vals add j 1 0 283 invalid 284 end 285 if ne get vals add j 11 0 286 ret badout 287 end 288 end 289 report 1 1 290 emit pass len pass 291 ret 0 292 end 293 if ne get vals 8 0 294 invalid 295 end 296 if or lt get vals 2 0 gt get vals 2 3 297 invalid 298 end 299 if or ne get vals 4 1 ne get vals 5 1 300 invalid 301 end 302 if or ne get vals 6 0 ne get vals 7 1 303 invalid 304 end 305 op = get vals 1 306 a = get vals 2 307 b = get vals 3 308 want = long 0 309 if eq op 1 310 if ne b 1 311 invalid 312 end 313 want = add a 1 314 else 315 if eq op 2 316 if ne b 2 317 invalid 318 end 319 want = mul a 2 320 else 321 if eq op 3 322 if ne b 0 323 invalid 324 end 325 want = a 326 else 327 invalid 328 end 329 end 330 end 331 if ne get vals 19 want 332 ret badout 333 end 334 report 1 1 335 emit pass len pass 336 ret 0 337 end 338 fn main to int 339 if ne argcnt 4 340 invalid 341 end 342 modebuf = new uchar 2 0 343 n = argread 1 modebuf 0 len modebuf 344 if ne n 1 345 invalid 346 end 347 mode = get modebuf 0 348 if or lt mode 49 gt mode 51 349 invalid 350 end 351 load 0 2 352 load 1 3 353 if eq mode 49 354 ret bits 355 end 356 if eq mode 50 357 ret journal 358 end 359 ret boundary 360 end