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/interplane-forge/blob/main/store/tests/mutant-scan.om # interplane-forge INTERPLANE Forge 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 `interplane-forge / store / tests / mutant-scan.om` 55 lines ยท 1280 bytes Raw Blame History 1 note store/tests/mutant-scan.om: TEST-ONLY mutant for store/tests/compare.sh, never composed into 2 note forged. compare.sh appends it to the composed store-reading build and turns "n = xscatrd" into 3 note "n = xscatsc": the project list then comes from scanning ROOT/projects and joining every 4 note project's catalog.row (what interplane-native's ipl join_catalog does) instead of from 5 note ROOT/catalog.tsv. Control C2 (a project in the folder that the catalog does not list) must catch it. 6 text tmtrow "/catalog.row" 7 global mtdb uchar 65536 8 fn xscatsc to long 9 put fxol 0 0 10 put fxotr 0 0 11 xspdir 12 note O_RDONLY | O_DIRECTORY (040000 on arm64) | O_CLOEXEC 13 fd = fopen fpth 0 get fpthl 0 540672 0 14 if lt fd 0 15 ret -1 16 end 17 for it ulong 100000 18 n = getdnts int fd mtdb 0 len mtdb 19 if le n 0 20 break 21 end 22 p = ulong 0 23 while lt p ulong n bound 65536 24 rl = or ulong get mtdb add p 16 shl ulong get mtdb add p 17 8 25 mtone add p 19 26 p = add p rl 27 end 28 end 29 x = fclose int fd 30 ret long get fxol 0 31 end 32 fn mtone a ulong to void 33 if eq get mtdb a 46 34 ret 35 end 36 xspfold 37 for k ulong 255 38 c = get mtdb add a k 39 if eq c 0 40 break 41 end 42 fpc c 43 end 44 fpt tmtrow 45 fd = fopen fpth 0 get fpthl 0 524288 0 46 if lt fd 0 47 ret 48 end 49 n = get fxol 0 50 r = read int fd fxo n sub len fxo n 51 if gt r 0 52 put fxol 0 add n ulong r 53 end 54 x = fclose int fd 55 end