Porting tools (e): structured drafts (if/loops), jump tables, groundtruth and style checks #50

Closed
opened 2026-11-03 17:11:14 +00:00 by Gatchan · 0 comments
Owner

Plan step 4e. draftc.py drafts are goto-based: rebuild if/else and loops (CT structure module), handle jump tables (switch), add groundtruth (port vs draft: same accesses and call-outs) and mechanical style checks (CT portsmell/portstyle) so the LLM pass only renames and restructures. Proof: structured drafts of the 9 ported field routines, 0 mismatch in draft_check US+JP; goto count before/after.

Plan step 4e. draftc.py drafts are goto-based: rebuild if/else and loops (CT structure module), handle jump tables (switch), add groundtruth (port vs draft: same accesses and call-outs) and mechanical style checks (CT portsmell/portstyle) so the LLM pass only renames and restructures. Proof: structured drafts of the 9 ported field routines, 0 mismatch in draft_check US+JP; goto count before/after.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Gatchan/FF6Portage#50
No description provided.