Commit Graph

19 Commits

Author SHA1 Message Date
Drew T 6991780f07 tools(phase-37): restruct --redraw VERDICT:cause lifts the engine's done set too (the redraw drew TUs and skipped every unit — 'rows 0'); share_body --retry-excepted (the 51 ledgered classes re-enter the plan); item (h) closed: D58/HD7 landed 196 canonical + 127 K&R; census 1,796 lying / 76 callees; .run pruned 50 → 16 GB (22 GB of gcc pass dumps) | 🛑 T4 in progress — item (g) NEXT (S108) 2026-09-12 22:29:20 -06:00
Drew T fa2ccea3ea tools(phase-37): argcheck sees indented file-scope definitions and keeps every K&R definition per binary (116 false lies); restruct --redraw takes VERDICT:cause keys; D40–D47 done (3,489 canonical); census 2,367 lying / 256 callees (+5,082 K&R, +511 cross-binary apart) | 🛑 T4 in progress (S108) 2026-09-12 20:23:46 -06:00
Drew T 498ab52916 tools(phase-37): argcheck resolves a callee's definition per declaring binary (a same-address function with 3 bodies was one bare name — 2,832 false lies), cross-binary declarations counted apart; restruct defs_visible takes the fleet's unique signature as a third level (723 'no visible definition' rows) | 🛑 T4 in progress (S108) 2026-09-12 19:26:14 -06:00
Drew T 274223396d src(phase-37): T4 step (e) — the 3,546 'carried decl layer' banner comment blocks removed (21,274 comment lines, 0 insertions); step (d) DONE: 10 of 12 parked signature bodies landed (func_80157D20 ×132 via --map-data, func_80029D3C with its 3 callers via --with, func_80188A30 void→s32) | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T4 in progress — step (f) NEXT (S108) 2026-09-12 18:58:05 -06:00
Drew T 095fe75e2c src(phase-37): T4 unalias t4_ua13 — 3 more alias-defined functions back under their real names as K&R-style definitions (169 files; the ladder's arity escalation counts attempts, not distinct files); step (b) DONE: 133 of 149 back, 16 kept with causes | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T4 in progress — step (c) NEXT (S108) 2026-09-12 17:46:12 -06:00
Drew T 043453170d src(phase-37): T4 unalias t4_ua11 — 9 more alias-defined functions back under their real names (the data-typed declaration of the real name → the prototype; 11 files); t4_ua10 0/29 bucketed (10 jr-merge DIFFERS, 10 redeclared, 5 header-side arity, 4 conflicting types); a header-side arity error now marks the including TUs | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T4 in progress (S108) 2026-09-12 17:27:51 -06:00
Drew T 1a213b8ef3 tools(phase-37): restruct call_arg_counts — a definition head is ') {' or a K&R head, not 'a { later on the line' (if (f() != 0) { read as a definition → '? of 1 args'); D26–D27 landed 13,367 canonical, 218/218 | 🛑 T4 in progress (S108) 2026-09-12 15:55:01 -06:00
Drew T ca5a71aa18 tools(phase-37): restruct K&R arity counts read the shared bodies a TU includes (unit_call_counts) — 306 D22–D25 rows said 'the calls pass []' for a call in an included header; D22–D25 landed 36,175 declarations canonical, 218/218 each | 🛑 T4 in progress (S108) 2026-09-12 15:41:51 -06:00
Drew T e031245825 tools(phase-37): restruct defs_visible indexes the shared headers a sibling TU includes — t4_D21's 10,495 'external' DECL-NONE rows were the binary's own shared-header functions (func_80147514-shaped); the killed t4_D22 erased (6 files reverted, 197 orphan rows dropped); cycle relaunched with REDRAW=DECL-NONE | 🛑 T4 in progress (S108) 2026-09-12 14:57:23 -06:00
Drew T f3b8af0ec1 phase-37: CHECKPOINT for a fresh session (84 % context) — T4 in progress: the D cycles (17,316 declarations canonical, 1,302 K&R sites marked, 207 data aliases typed, 10 __builtin_abs), the alias-defined-function class (120 of 149 back under their real names, 29 kept with causes; the unit's per-file prototype ladder, the hoist, the K&R-style definition), the planner's DECL-NONE settling; the timeline's lower panel redrawn on Drew's word (every lever increment with its method, the casts as two instruments); decision log + accelerators P37 S107, story §10 + retrospective §7 advanced; the 🛑 block rewritten with T4's exact resume | R22 check-all: 218 passed, 0 failed of 218 at f2b58011e | 🛑 T4 NEXT (resume per the checkpoint §1) 2026-09-12 14:32:37 -06:00
Drew T 688280fa9e src(phase-37): T4 unalias t4_ua8 — 5 more alias-defined functions back under their real names (the definition TU's own declarations may go (); 5 files) | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T4 in progress (S107) 2026-09-12 13:46:44 -06:00
Drew T 7f8d448449 src(phase-37): T4 unalias t4_ua7 — func_80131CA8 back under its real name as a K&R-style definition (callers pass more arguments than its byte-true head declares; 235 files, 202 objects IDENTICAL); the unit's per-file prototype ladder (exact → promoted → () → untouched) | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T4 in progress (S107) 2026-09-12 13:27:05 -06:00
Drew T b2c6b23646 src(phase-37): T4 unalias t4_ua6 — 6 more alias-defined functions back under their real names (612 files; the hoist of a shared header's declaration into its includers landed 4 of them) | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T4 in progress (S107) 2026-09-12 13:07:03 -06:00
Drew T 7ae2e7f811 src(phase-37): T4 unalias t4_ua3 (partial, stopped with SIGINT) — 1 more alias-defined function back under its real name (136 files); the unit gains the hoist pre-step, the arity/conflict/DIFFERS fallbacks and the promoted (K&R-style definition) mode | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T4 in progress (S107) 2026-09-12 12:42:29 -06:00
Drew T 74aac39e74 src(phase-37): T4 unalias t4_ua1 — func_8012EFB8 back under its real name (s32 (void *, void *)): 194 alias prototypes gone, 375 declarations canonical, 2 shared headers K&R-marked; the --unalias unit + the planner's settled-TU skip + the same-name-alias fix | IDENTICAL on 478 objects | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T4 in progress (S107) 2026-09-12 11:44:51 -06:00
Drew T 545092d376 phase-37: T3 ☑ — the tools: tools/struct_layout.py (the o32 layout engine + the canonical-type writer in the final style + the naming invariant), tools/restruct.py's full form (rungs S/S2/S+A/X/R/D/L, the ledger, inflight restore, selftest 48 + --real 53), delever_oracle's LINKED mode (the build's own ld on the candidate object; f3 known-true + negative; the snapshot guard that caught T2's contaminated build/ object), include/common.h's reinterpret macros (proven equal on cc1's assembly), tools/restruct_cycle.sh (detached); rung D banked on ov_SC04_011 (258 units: 242 canonical / 8 K&R marked / 16 kept with causes); SETUP §P37 S107, dictionary rows, kit corpus, decision log + accelerators P37 S107, cookbook §458 addendum, story §10 + retrospective §7 + timeline | R22 check-all: 218 passed, 0 failed of 218 (r22_t3c) | 🛑 T4 NEXT (the declaration layer; P6 rules check first) 2026-09-12 10:04:16 -06:00
Drew T 42a57f576d phase-37: T3 (in progress) — rung D redraw t3d2 on ov_SC04_011: the cause reader learns cpp's context lines + the all-() K&R candidate (8 K&R marked / 16 kept, 5 files) | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T3 in progress (S107) 2026-09-12 09:47:24 -06:00
Drew T 21d2ccc141 phase-37: T3 (in progress) — the engine's first bank: tools/struct_layout.py (the layout engine + the writer + the naming invariant), delever_oracle's LINKED mode (the build's own ld on the candidate object; f3 known-true + negative; the snapshot guard that caught T2's contaminated build/ object), tools/restruct.py (rungs S/S2/S+A/X/R/D/L, the ledger, inflight restore, selftest 48/48 + --real 51/51); rung D batch t3d1 on ov_SC04_011: 258 units — 242 canonical / 6 K&R marked / 16 kept | R22 check-all: 218 passed, 0 failed of 218 | 🛑 T3 in progress (S107) 2026-09-12 09:40:36 -06:00
Drew T cd39c79de6 phase-37: T2 ☑ — the probe: rung 1 (struct spelling) byte-neutral on 126/139 judged bodies (90.6 %, 716 sites moved), rung S2 closes 13/13 DIFFERS with 27 casts kept (139/139); the definition's signature free for 4,473/4,828 (TU, callee) pairs (92.6 %, 0 DIFFERS; 355 compile refusals = K&R sites + multi-spellings); the definition fold 12/20 TUs clean (opaque folds need member renames); the layout engine cc1-validated on 5,283 definitions / 29,248 fields (0 rejected; two engine gaps fixed: nested-paren attributes, per-field aligned(N); 27 dead-guarded standalone blocks blanked); the relocation control (object DIFFERS, binary identical) proves T3's linked mode; engine_types.h fan-out 3,975 objects in 35 s; tools/restruct.py (--try/--probe/--probe-decls/--probe-defs/--audit-layouts/--fanout-cost) + SETUP + dictionary | 🛑 T3 NEXT (the tools, Max design) 2026-09-12 01:27:45 -06:00