decomp-permuter
Installation
SKILL.md
Decomp Permuter Skill
Use this skill when you're stuck at a high match percentage (95%+) but can't find the exact code that produces a 100% match. The permuter automatically tries thousands of code variations to find one that matches.
When to Use
- Stuck at 99%+ match with only register allocation (
r) diffs - Manual reordering of declarations hasn't helped
- The diff shows consistent register mismatches (e.g., target uses r5, you get r6)
- You've tried multiple approaches but can't find the right combination
Prerequisites
The decomp-permuter is located at ~/code/decomp-permuter.
Required tools:
- Python 3 with
pycparser,toml,Levenshteinpackages - devkitPPC at
/opt/devkitpro/devkitPPC/bin/(assembler, objdump) - Wine (for MWCC compiler)