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/CUDApp/blob/main/tests/components/run.om # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. 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 `CUDApp / tests / components / run.om` 782 lines · 19961 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Seeded native host conductor; concatenate proc.om, cases.om, then this file. 3 note C and nvdisasm/sha256sum are independent verification tools only, never production dependencies. 4 text Rt00000 "om/encoder/bw_spec_sm121.om" 5 text Rt00002 "om/components/bw_alloc.om" 6 text Rt00003 "om/components/bw_effect.om" 7 text Rt00004 "om/components/bw_check.om" 8 text Rt00005 "om/components/bw_project.om" 9 text Rt00006 "om/components/rowpipe.om" 10 text Rt00007 "om/components/staged.om" 11 text Rt00008 "om/components/compose.om" 12 text Rt00009 "om/encoder/bw_enc_sm121.om" 13 text Rt00010 "om/components/encode.om" 14 text Rt00011 "build/components/component-unit" 15 text Rt00012 "tests/components/component-unit.om" 16 text Rt00013 "build/components/compose-unit" 17 text Rt00014 "tests/components/compose-unit.om" 18 text Rt00015 "build/components/direct" 19 text Rt00016 "tests/components/direct-caller.om" 20 text Rt00017 "build/components/rowpipe" 21 text Rt00018 "tests/components/rowpipe-caller.om" 22 text Rt00019 "build/components/staged" 23 text Rt00020 "tests/components/staged-caller.om" 24 text Rt00021 "-std=gnu11" 25 text Rt00022 "-O2" 26 text Rt00023 "-Wall" 27 text Rt00024 "-Wextra" 28 text Rt00025 "-Werror" 29 text Rt00026 "-DOMEGA_GPU_NO_POSIX" 30 text Rt00027 "-ffunction-sections" 31 text Rt00028 "-fdata-sections" 32 text Rt00029 "-Wl,--gc-sections" 33 text Rt00030 "-Isrc" 34 text Rt00031 "-DWS_MAX_THREADS=1024" 35 text Rt00032 "-DCOMPONENT_STAGED" 36 text Rt00033 "tests/components/numerical.c" 37 text Rt00034 "src/omega_gpu_fp8_pack.c" 38 text Rt00035 "src/omega_gpu_hostmath.c" 39 text Rt00036 "src/omega_gpu_fp8gemm_api.c" 40 text Rt00037 "src/omega_blackwell_matmul.c" 41 text Rt00038 "src/omega_blackwell_codegen_moe.c" 42 text Rt00039 "src/omega_blackwell_codegen_moe2.c" 43 text Rt00040 "src/omega_blackwell_codegen_gemm.c" 44 text Rt00041 "src/omega_blackwell_codegen.c" 45 text Rt00042 "-lm" 46 text Rt00043 "tests/components/direct-oracle.c" 47 text Rt00044 "src/omega_blackwell_codegen_moe.c" 48 text Rt00045 "tests/components/rowpipe-oracle.c" 49 text Rt00046 "src/omega_blackwell_codegen_moe2.c" 50 text Rt00047 "tests/components/staged-oracle.c" 51 text Rt00048 "src/omega_blackwell_codegen_gemm.c" 52 text Rt00049 "src/omega_blackwell_codegen.c" 53 text Rt00050 "-o" 54 text Rt00051 "build/components/direct-oracle" 55 text Rt00052 "build/components/rowpipe-oracle" 56 text Rt00053 "build/components/staged-oracle" 57 text Rt00054 "build/components/numerical-gemv" 58 text Rt00055 "build/components/numerical-staged" 59 text Rt00056 "build/components/hash.txt" 60 text Rt00057 "`2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`" 61 text Rt00058 "\"" 62 text Rt00059 "\\" 63 text Rt00060 "," 64 text Rt00061 "\n" 65 text Rt00062 "\n{\"family\":" 66 text Rt00063 "direct" 67 text Rt00064 "rowpipe" 68 text Rt00065 "staged" 69 text Rt00066 ",\"spec\":[" 70 text Rt00067 "],\"whole_frame_sha256\":" 71 text Rt00068 ",\"code_sha256\":" 72 text Rt00069 ",\"numerical_result\":" 73 text Rt00070 ",\"result\":\"PASS\"}" 74 text Rt00071 ":" 75 text Rt00072 "build/components/receipt.json" 76 text Rt00073 "{\"conductor\":\"seeded Omega proc.om + cases.om + run.om\",\"compiler\":\"`2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`\",\"source_baseline\":\"`b759afc3f5e46f152ffb06b39882ffa28cacaf96`\",\"encoder_source_revision\":\"`1c5a8398d93b49e6765c2e3752aaad8611027d0d`\",\"quant_source_revision\":\"`fe25929ce71b11703eafa72395df2dd495aa61f2`\",\"physical_execution\":\"NOT_RUN: no GPU authority\",\"cases\":[" 77 text Rt00074 "],\"independent_numerical_execution\":\"PASS reused existing scalar/warp oracles on every native IR/allocation frame\",\"composer_root\":\"PASS direct/changed-direct/rowpipe/dense-staged/mapped-staged and mutant refusal\",\"negative_controls\":[\"reserved component fields refuse\",\"SB_B/SB_RD/branch reference mutations differ\",\"native/oracle resource exhaustion refuses without output\",\"truncated/oversized frames refuse without output\",\"typed op/bundle/wait/branch/resource/MMA controls PASS\",\"every native frame FFMA-to-FADD executes but numerical oracle disagrees\",\"every native frame unknown-op refusal preserved\"],\"source_sha256\":{\"tests/components/proc.om\":" 78 text Rt00075 "tests/components/proc.om" 79 text Rt00076 "tests/components/cases.om" 80 text Rt00077 "tests/components/run.om" 81 text Rt00078 "tests/components/numerical.c" 82 text Rt00079 "tests/components/native-frame.h" 83 text Rt00080 "tests/gpu_fp8_api_test.c" 84 text Rt00081 "tests/gpu_fp8gemm_test.c" 85 text Rt00082 "tests/bw_warp_sim.h" 86 text Rt00083 "tests/bw_warp_sim_k.h" 87 text Rt00084 "src/omega_gpu_fp8_pack.c" 88 text Rt00085 "src/omega_gpu_hostmath.c" 89 text Rt00086 "src/omega_gpu_fp8gemm_api.c" 90 text Rt00087 "src/omega_blackwell_matmul.c" 91 text Rt00088 "om/components/bw_alloc.om" 92 text Rt00089 "om/components/bw_check.om" 93 text Rt00090 "om/components/bw_effect.om" 94 text Rt00091 "om/components/bw_project.om" 95 text Rt00092 "om/components/compose.om" 96 text Rt00093 "om/components/encode.om" 97 text Rt00094 "om/components/fixture.om" 98 text Rt00095 "om/components/realize.om" 99 text Rt00096 "om/components/rowpipe.om" 100 text Rt00097 "om/components/staged.om" 101 text Rt00098 "},\"encoder_source_sha256\":{" 102 text Rt00099 "om/encoder/bw_enc_sm121.om" 103 text Rt00100 "om/encoder/bw_spec_sm121.om" 104 text Rt00101 "},\"tool_versions\":{\"nvdisasm\":" 105 text Rt00102 "usage: conductor OMC ENCODER_ROOT NVDISASM CC SHA256SUM QUANT_SOURCE\n" 106 text Rt00103 "build" 107 text Rt00104 "build/components" 108 text Rt00105 "PASS native Omega component conductor: 8 direct, 14 rowpipe, 6 staged; independent numerics/bytes/disassembly/refusals and staged structural controls\n" 109 text RtBytes ",\"code_bytes\":" 110 text RtCcVer ",\"cc\":" 111 text RtShaVer ",\"sha256sum\":" 112 text RtVEnd "}}\n" 113 text RtVerP "build/components/version.txt" 114 text RtVFlag "--version" 115 text RtDFlag "-V" 116 text RtEncPin "`12369bf1e383e79a4926e7758aaf5f3f778f2945c91327ce0aa570babffc05e6`" 117 text RtSpPin "`d38dd63f842dff1dae525208576825f3a0027dead5ab2cde9482cf70b87e8ae9`" 118 text RtSrc0 "tests/components/component-unit.om" 119 text RtSrc1 "tests/components/compose-unit.om" 120 text RtSrc2 "tests/components/direct-caller.om" 121 text RtSrc3 "tests/components/rowpipe-caller.om" 122 text RtSrc4 "tests/components/staged-caller.om" 123 text RtSrc5 "tests/components/direct-oracle.c" 124 text RtSrc6 "tests/components/rowpipe-oracle.c" 125 text RtSrc7 "tests/components/staged-oracle.c" 126 text RtSrc8 "src/omega_blackwell_codegen.c" 127 text RtSrc9 "src/omega_blackwell_codegen_moe.c" 128 text RtSrc10 "src/omega_blackwell_codegen_moe2.c" 129 text RtSrc11 "src/omega_blackwell_codegen_gemm.c" 130 text RtSrc12 "src/omega_blackwell_codegen.h" 131 text RtSrc13 "tests/components/wolfram.json" 132 global HQuant uchar 1024 133 global HQn ulong 1 134 text RtQuant "om/quant/quant.om" 135 text RtQPin "`44bce96f3c274401e19a71b835814d69caf2bea8c2b1f4f43616c7c121232f09`" 136 text RtAdmit "om/components/admit.om" 137 text RtRUnit "tests/components/record-unit.om" 138 text RtRBin "build/components/record-unit" 139 text RtRMut "build/components/record-mutant" 140 text RtGuard "if lt compose_word b 22 add get actual 1 2" 141 text RtWeak "if false" 142 text RtRKey ",\"staged_structural_result\":" 143 text RtRcpt "tests/components/capacity-host-receipt.json" 144 text RtCap "tests/components/capacity-unit.om" 145 text RtCapB "build/components/capacity-unit" 146 text RtCapM1 "build/components/capacity-patch-mutant" 147 text RtCapM2 "build/components/capacity-tail-mutant" 148 text RtCapIf "if ge at 1024" 149 text RtCapRs ",\"capacity_regression\":{\"baseline\":\"`c6977b4906229fe83f41103b7eff65b64a0986d6`\",\"baseline_exit\":103,\"fixed_exit\":0,\"patch_guard_removal_exit\":103,\"tail_guard_removal_exit\":103,\"staged_cfg\":[3,1536,16,8,16,0],\"result\":\"PASS\"}" 150 text RtCapRun "tests/components/capacity-runtime-unit.om" 151 text RtCapRB "build/components/capacity-runtime-unit" 152 text RtVal "om/cache/validate.om" 153 text RtDig "om/cache/digest.om" 154 text RtRes "om/cache/residency.om" 155 text RtArt "om/cache/artifact.om" 156 fn rt_val to void 157 path = new uchar 1024 0 158 n = rt_qpath path 159 hp_cat path n 160 rt_nl 161 hp_cat Rt00095 len Rt00095 162 rt_nl 163 hp_cat RtDig len RtDig 164 rt_nl 165 hp_cat RtRes len RtRes 166 rt_nl 167 hp_cat RtArt len RtArt 168 rt_nl 169 rt_enc Rt00009 len Rt00009 170 rt_spec 171 hp_cat Rt00010 len Rt00010 172 rt_nl 173 hp_cat RtAdmit len RtAdmit 174 rt_nl 175 hp_cat RtVal len RtVal 176 rt_nl 177 hp_cat RtCapRun len RtCapRun 178 rt_nl 179 hp_build RtCapRB len RtCapRB 180 end 181 fn rc_publish to void 182 b = new uchar 262144 0 183 n = hp_read Rt00072 len Rt00072 b len b 184 hp_require gt n 0 185 hp_write RtRcpt len RtRcpt b n 186 end 187 fn rt_qpath path edit uchar 1024 to ulong 188 used = get HQn 0 189 for j ulong used 190 put path j get HQuant j 191 end 192 ret used 193 end 194 fn rt_qpin to void 195 path = new uchar 1024 0 196 n = rt_qpath path 197 h = new uchar 64 0 198 rh_get path n h 199 for j ulong 64 200 hp_require eq get h j get RtQPin j 201 end 202 end 203 note Build a concrete weak-GPR checker mutant without changing checked-in production source. 204 fn rt_weak to void 205 hits = ulong 0 206 used = get HUsed 0 207 for pos ulong sub used len RtGuard 208 same = uint 1 209 for j ulong len RtGuard 210 if ne get HSrc add pos j get RtGuard j 211 same = 0 212 end 213 end 214 if ne same 0 215 hits = add hits 1 216 for j ulong len RtGuard 217 c = uchar 32 218 if lt j len RtWeak 219 c = get RtWeak j 220 end 221 put HSrc add pos j c 222 end 223 end 224 end 225 hp_require eq hits 1 226 end 227 fn rt_record kind ulong to void 228 path = new uchar 1024 0 229 n = rt_qpath path 230 hp_cat path n 231 rt_nl 232 hp_cat Rt00095 len Rt00095 233 rt_nl 234 hp_cat RtAdmit len RtAdmit 235 rt_nl 236 hp_cat Rt00094 len Rt00094 237 rt_nl 238 hp_cat RtRUnit len RtRUnit 239 rt_nl 240 if eq kind 7 241 rt_weak 242 hp_build RtRMut len RtRMut 243 else 244 hp_build RtRBin len RtRBin 245 end 246 end 247 248 fn rt_uncap which ulong to void 249 hits = ulong 0 250 for pos ulong sub get HUsed 0 len RtCapIf 251 same = true 252 for j ulong len RtCapIf 253 if ne get HSrc add pos j get RtCapIf j 254 same = false 255 end 256 end 257 if same 258 hits = add hits 1 259 if eq hits which 260 for j ulong len RtCapIf 261 c = uchar 32 262 if lt j len RtWeak 263 c = get RtWeak j 264 end 265 put HSrc add pos j c 266 end 267 end 268 end 269 end 270 hp_require eq hits 2 271 end 272 fn rt_nl to void 273 pos = get HUsed 0 274 hp_require lt pos len HSrc 275 put HSrc pos 10 276 put HUsed 0 add pos 1 277 end 278 fn rt_path suffix view uchar * n ulong dst edit uchar 1024 to ulong 279 used = get HEn 0 280 hp_require le add add used 1 n 1024 281 for j ulong used 282 put dst j get HEnc j 283 end 284 put dst used 47 285 for j ulong n 286 put dst add add used 1 j get suffix j 287 end 288 ret add add used 1 n 289 end 290 fn rt_enc suffix view uchar * n ulong to void 291 path = new uchar 1024 0 292 used = rt_path suffix n path 293 hp_cat path used 294 rt_nl 295 end 296 fn rt_spec to void 297 rt_enc Rt00000 len Rt00000 298 end 299 fn rt_comp kind ulong to void 300 put HUsed 0 0 301 hp_cat Rt00002 len Rt00002 302 rt_nl 303 hp_cat Rt00003 len Rt00003 304 rt_nl 305 hp_cat Rt00004 len Rt00004 306 rt_nl 307 hp_cat Rt00005 len Rt00005 308 rt_nl 309 if or ge kind 6 or eq kind 2 eq kind 4 310 hp_cat Rt00006 len Rt00006 311 rt_nl 312 end 313 if or ge kind 6 or eq kind 2 eq kind 5 314 hp_cat Rt00007 len Rt00007 315 rt_nl 316 end 317 if or eq kind 2 ge kind 6 318 hp_cat Rt00008 len Rt00008 319 rt_nl 320 end 321 if and ge kind 3 le kind 5 322 rt_enc Rt00009 len Rt00009 323 rt_spec 324 hp_cat Rt00010 len Rt00010 325 rt_nl 326 end 327 if eq kind 1 328 hp_cat Rt00012 len Rt00012 329 rt_nl 330 hp_build Rt00011 len Rt00011 331 end 332 if eq kind 2 333 hp_cat Rt00014 len Rt00014 334 rt_nl 335 hp_build Rt00013 len Rt00013 336 end 337 if eq kind 3 338 hp_cat Rt00016 len Rt00016 339 rt_nl 340 hp_build Rt00015 len Rt00015 341 end 342 if eq kind 4 343 hp_cat Rt00018 len Rt00018 344 rt_nl 345 hp_build Rt00017 len Rt00017 346 end 347 if eq kind 5 348 hp_cat Rt00020 len Rt00020 349 rt_nl 350 hp_build Rt00019 len Rt00019 351 end 352 if and ge kind 6 le kind 7 353 rt_record kind 354 end 355 if and ge kind 8 le kind 10 356 hp_cat RtCap len RtCap 357 rt_nl 358 if eq kind 8 359 hp_build RtCapB len RtCapB 360 else 361 rt_uncap sub kind 8 362 if eq kind 9 363 hp_build RtCapM1 len RtCapM1 364 else 365 hp_build RtCapM2 len RtCapM2 366 end 367 end 368 end 369 if eq kind 11 370 rt_val 371 end 372 end 373 note execprog intentionally supplies an empty environment; locate the selected cc toolchain explicitly. 374 fn rt_ccpref to void 375 b = new uchar 1024 0 376 last = ulong 0 377 for j ulong get HCn 0 378 if eq get HCc j 47 379 last = add j 1 380 end 381 end 382 hp_require gt last 0 383 hp_require le last 1022 384 put b 0 45 385 put b 1 66 386 for j ulong last 387 put b add j 2 get HCc j 388 end 389 hp_arg b add last 2 390 end 391 fn rt_cc kind ulong to void 392 hp_tool 1 393 rt_ccpref 394 hp_arg Rt00021 len Rt00021 395 hp_arg Rt00022 len Rt00022 396 hp_arg Rt00023 len Rt00023 397 hp_arg Rt00024 len Rt00024 398 hp_arg Rt00025 len Rt00025 399 hp_arg Rt00026 len Rt00026 400 hp_arg Rt00027 len Rt00027 401 hp_arg Rt00028 len Rt00028 402 hp_arg Rt00029 len Rt00029 403 hp_arg Rt00030 len Rt00030 404 if ge kind 4 405 hp_arg Rt00031 len Rt00031 406 if eq kind 5 407 hp_arg Rt00032 len Rt00032 408 end 409 hp_arg Rt00033 len Rt00033 410 hp_arg Rt00034 len Rt00034 411 hp_arg Rt00035 len Rt00035 412 hp_arg Rt00036 len Rt00036 413 hp_arg Rt00037 len Rt00037 414 hp_arg Rt00038 len Rt00038 415 hp_arg Rt00039 len Rt00039 416 hp_arg Rt00040 len Rt00040 417 hp_arg Rt00041 len Rt00041 418 hp_arg Rt00042 len Rt00042 419 else 420 if eq kind 1 421 hp_arg Rt00043 len Rt00043 422 hp_arg Rt00044 len Rt00044 423 end 424 if eq kind 2 425 hp_arg Rt00045 len Rt00045 426 hp_arg Rt00046 len Rt00046 427 end 428 if eq kind 3 429 hp_arg Rt00047 len Rt00047 430 hp_arg Rt00048 len Rt00048 431 end 432 hp_arg Rt00049 len Rt00049 433 end 434 hp_arg Rt00050 len Rt00050 435 if eq kind 1 436 hp_arg Rt00051 len Rt00051 437 end 438 if eq kind 2 439 hp_arg Rt00052 len Rt00052 440 end 441 if eq kind 3 442 hp_arg Rt00053 len Rt00053 443 end 444 if eq kind 4 445 hp_arg Rt00054 len Rt00054 446 end 447 if eq kind 5 448 hp_arg Rt00055 len Rt00055 449 end 450 hp_exec -1 -1 0 451 end 452 fn rh_get path view uchar * n ulong dst edit uchar 64 to void 453 hp_tool 3 454 hp_arg path n 455 fd = int fopen Rt00056 0 len Rt00056 577 420 456 hp_require ge fd 0 457 hp_exec -1 fd 0 458 hp_require eq fclose fd 0 459 b = new uchar 2048 0 460 used = hp_read Rt00056 len Rt00056 b 2048 461 hp_require ge used 66 462 hp_require eq get b 64 32 463 for j ulong 64 464 v = get b j 465 hp_require or and ge v 48 le v 57 and ge v 97 le v 102 466 put dst j v 467 end 468 end 469 fn rt_pin to void 470 path = new uchar 1024 0 471 n = get HOn 0 472 for j ulong n 473 put path j get HOm j 474 end 475 h = new uchar 64 0 476 rh_get path n h 477 for j ulong 64 478 hp_require eq get h j get Rt00057 j 479 end 480 end 481 global RCFile int 1 482 global RCCount ulong 1 483 fn rc_text a view uchar * n ulong to void 484 pos = ulong 0 485 tries = ulong 0 486 while lt pos n bound 999999 487 z = write get RCFile 0 a pos sub n pos 488 if eq z -4 489 tries = add tries 1 490 hp_require le tries 64 491 else 492 hp_require gt z 0 493 pos = add pos ulong z 494 end 495 end 496 end 497 fn rc_quote a view uchar * n ulong to void 498 rc_text Rt00058 len Rt00058 499 b = new uchar 6 0 500 for j ulong n 501 v = get a j 502 if or eq v 34 eq v 92 503 put b 0 92 504 put b 1 v 505 rc_text b 2 506 else 507 if lt v 32 508 put b 0 92 509 put b 1 117 510 put b 2 48 511 put b 3 48 512 hi = div ulong v 16 513 lo = rem ulong v 16 514 put b 4 uchar add hi 48 515 if ge hi 10 516 put b 4 uchar add hi 87 517 end 518 put b 5 uchar add lo 48 519 if ge lo 10 520 put b 5 uchar add lo 87 521 end 522 rc_text b 6 523 else 524 put b 0 v 525 rc_text b 1 526 end 527 end 528 end 529 rc_text Rt00058 len Rt00058 530 end 531 fn rc_num n ulong to void 532 b = new uchar 32 0 533 used = hp_num n b 534 rc_text b used 535 end 536 fn rc_hash path view uchar * n ulong to void 537 h = new uchar 64 0 538 rh_get path n h 539 rc_quote h 64 540 end 541 fn rc_chash which ulong to void 542 path = new uchar 256 0 543 n = get KCAn 0 544 if eq which 1 545 n = get KCCn 0 546 end 547 for j ulong n 548 if eq which 0 549 put path j get KCActual j 550 else 551 put path j get KCCode j 552 end 553 end 554 rc_hash path n 555 end 556 fn rc_numout to void 557 path = new uchar 256 0 558 n = get KCNn 0 559 for j ulong n 560 put path j get KCNum j 561 end 562 b = new uchar 8192 0 563 used = hp_read path n b 8192 564 hp_require gt used 0 565 rc_quote b used 566 end 567 fn rc_record fam ulong idx ulong to void 568 path = new uchar 256 0 569 n = kc_name fam idx KCRText path 570 b = new uchar 1024 0 571 used = hp_read path n b 1024 572 hp_require gt used 0 573 rc_text RtRKey len RtRKey 574 rc_quote b used 575 end 576 fn rc_case fam ulong idx ulong cfg view ulong 16 to void 577 if ne get RCCount 0 0 578 rc_text Rt00060 len Rt00060 579 end 580 rc_text Rt00062 len Rt00062 581 if eq fam 1 582 rc_quote Rt00063 len Rt00063 583 end 584 if eq fam 2 585 rc_quote Rt00064 len Rt00064 586 end 587 if eq fam 3 588 rc_quote Rt00065 len Rt00065 589 end 590 rc_text Rt00066 len Rt00066 591 fields = ulong 5 592 if eq fam 2 593 fields = ulong 4 594 end 595 for j ulong fields 596 if ne j 0 597 rc_text Rt00060 len Rt00060 598 end 599 rc_num get cfg j 600 end 601 rc_text Rt00067 len Rt00067 602 rc_chash 0 603 rc_text Rt00068 len Rt00068 604 rc_chash 1 605 rc_text RtBytes len RtBytes 606 rc_num get KCBytes 0 607 rc_text Rt00069 len Rt00069 608 rc_numout 609 if eq fam 3 610 rc_record fam idx 611 end 612 rc_text Rt00070 len Rt00070 613 put RCCount 0 add get RCCount 0 1 614 end 615 fn rc_source path view uchar * n ulong to void 616 rc_text Rt00060 len Rt00060 617 rc_quote path n 618 rc_text Rt00071 len Rt00071 619 rc_hash path n 620 end 621 fn rc_begin to void 622 fd = int fopen Rt00072 0 len Rt00072 577 420 623 hp_require ge fd 0 624 put RCFile 0 fd 625 put RCCount 0 0 626 rc_text Rt00073 len Rt00073 627 end 628 fn rc_finish to void 629 hp_require eq get RCCount 0 28 630 rc_text Rt00074 len Rt00074 631 rc_hash Rt00075 len Rt00075 632 rc_source Rt00076 len Rt00076 633 rc_source Rt00077 len Rt00077 634 rc_source Rt00078 len Rt00078 635 rc_source Rt00079 len Rt00079 636 rc_source Rt00080 len Rt00080 637 rc_source Rt00081 len Rt00081 638 rc_source Rt00082 len Rt00082 639 rc_source Rt00083 len Rt00083 640 rc_source Rt00084 len Rt00084 641 rc_source Rt00085 len Rt00085 642 rc_source Rt00086 len Rt00086 643 rc_source Rt00087 len Rt00087 644 rc_source Rt00088 len Rt00088 645 rc_source Rt00089 len Rt00089 646 rc_source Rt00090 len Rt00090 647 rc_source Rt00091 len Rt00091 648 rc_source Rt00092 len Rt00092 649 rc_source Rt00093 len Rt00093 650 rc_source Rt00094 len Rt00094 651 rc_source Rt00095 len Rt00095 652 rc_source Rt00096 len Rt00096 653 rc_source Rt00097 len Rt00097 654 rc_source RtSrc0 len RtSrc0 655 rc_source RtSrc1 len RtSrc1 656 rc_source RtSrc2 len RtSrc2 657 rc_source RtSrc3 len RtSrc3 658 rc_source RtSrc4 len RtSrc4 659 rc_source RtSrc5 len RtSrc5 660 rc_source RtSrc6 len RtSrc6 661 rc_source RtSrc7 len RtSrc7 662 rc_source RtSrc8 len RtSrc8 663 rc_source RtSrc9 len RtSrc9 664 rc_source RtSrc10 len RtSrc10 665 rc_source RtSrc11 len RtSrc11 666 rc_source RtSrc12 len RtSrc12 667 rc_source RtSrc13 len RtSrc13 668 rc_source RtAdmit len RtAdmit 669 rc_source RtRUnit len RtRUnit 670 rc_source RtCap len RtCap 671 rc_source RtCapRun len RtCapRun 672 rc_source RtVal len RtVal 673 rc_source RtDig len RtDig 674 rc_source RtRes len RtRes 675 rc_source RtArt len RtArt 676 rc_text Rt00060 len Rt00060 677 rc_quote RtQuant len RtQuant 678 rc_text Rt00071 len Rt00071 679 path = new uchar 1024 0 680 n = rt_qpath path 681 rc_hash path n 682 rc_text Rt00098 len Rt00098 683 rc_quote Rt00099 len Rt00099 684 rc_text Rt00071 len Rt00071 685 rc_ehash Rt00099 len Rt00099 686 rc_text Rt00060 len Rt00060 687 rc_quote Rt00100 len Rt00100 688 rc_text Rt00071 len Rt00071 689 rc_ehash Rt00100 len Rt00100 690 rc_text Rt00101 len Rt00101 691 rc_ver 2 RtDFlag len RtDFlag 692 rc_text RtCcVer len RtCcVer 693 rc_ver 1 RtVFlag len RtVFlag 694 rc_text RtShaVer len RtShaVer 695 rc_ver 3 RtVFlag len RtVFlag 696 rc_text RtCapRs len RtCapRs 697 rc_text RtVEnd len RtVEnd 698 hp_require eq fsync get RCFile 0 0 699 hp_require eq fclose get RCFile 0 0 700 end 701 fn rc_ehash path view uchar * n ulong to void 702 b = new uchar 1024 0 703 used = rt_path path n b 704 rc_hash b used 705 end 706 fn rt_epin suffix view uchar * n ulong expected view uchar 64 to void 707 path = new uchar 1024 0 708 used = rt_path suffix n path 709 h = new uchar 64 0 710 rh_get path used h 711 for j ulong 64 712 hp_require eq get h j get expected j 713 end 714 end 715 fn rc_ver which ulong flag view uchar * n ulong to void 716 hp_tool which 717 hp_arg flag n 718 fd = int fopen RtVerP 0 len RtVerP 577 420 719 hp_require ge fd 0 720 hp_exec -1 fd 0 721 hp_require eq fclose fd 0 722 b = new uchar 8192 0 723 used = hp_read RtVerP len RtVerP b 8192 724 hp_require gt used 0 725 rc_quote b used 726 end 727 fn main to int 728 if ne argcnt 7 729 z = write 2 Rt00102 0 len Rt00102 730 ret 64 731 end 732 n = argread 1 HOm 0 1024 733 hp_require and gt n 0 le n 1024 734 put HOn 0 ulong n 735 n = argread 2 HEnc 0 1024 736 hp_require and gt n 0 le n 1024 737 put HEn 0 ulong n 738 n = argread 3 HDis 0 1024 739 hp_require and gt n 0 le n 1024 740 put HDn 0 ulong n 741 n = argread 4 HCc 0 1024 742 hp_require and gt n 0 le n 1024 743 put HCn 0 ulong n 744 n = argread 5 HSha 0 1024 745 hp_require and gt n 0 le n 1024 746 put HSn 0 ulong n 747 n = argread 6 HQuant 0 1024 748 hp_require and gt n 0 le n 1024 749 put HQn 0 ulong n 750 z = makedir Rt00103 0 len Rt00103 493 751 hp_require or eq z 0 eq z -17 752 z = makedir Rt00104 0 len Rt00104 493 753 hp_require or eq z 0 eq z -17 754 rt_pin 755 rt_epin Rt00099 len Rt00099 RtEncPin 756 rt_epin Rt00100 len Rt00100 RtSpPin 757 rt_qpin 758 for i ulong 5 759 rt_comp add i 1 760 rt_cc add i 1 761 end 762 rt_comp 6 763 rt_comp 7 764 rt_comp 8 765 rt_comp 9 766 rt_comp 10 767 hp_start RtCapB len RtCapB 768 hp_exec -1 -1 0 769 hp_start RtCapM1 len RtCapM1 770 hp_exec -1 -1 103 771 hp_start RtCapM2 len RtCapM2 772 hp_exec -1 -1 103 773 rt_comp 11 774 hp_start RtCapRB len RtCapRB 775 hp_exec -1 -1 0 776 rc_begin 777 kc_cases 778 rc_finish 779 rc_publish 780 z = write 1 Rt00105 0 len Rt00105 781 ret 0 782 end