AI generatedCode
59.13%- 6.43% matching
- 52.69% partially matching
- 40.87% to do
Data
100%- 2,155,890,688 done
- 0 to do
Functions
23.81%- 2,531 matching
- 8,101 to do
code -0.92% · data ±0% ·
Generated files use real prototypes (src/sw2e_protos.h from tools/make_protos.py): calls fixed against the callees' definitions (146 missing arguments recovered from the machine code, extra arguments
Areas
- Matching
- Partially matching
- Not decompiled
All areas as a table
| Area | Matching | Partially matching | Data | Size (bytes) |
|---|---|---|---|---|
| (start-up and main loop) | 36.92% | 56.50% | — | 9,232 |
| Scenes (16) | 10.41% | 59.25% | — | 699,768 |
| StateInitialize.c | 3.04% | 94.86% | — | 76,760 |
| StateStartUp.c | 22.06% | 65.55% | — | 48,448 |
| StateDemo.c | 5.75% | 60.57% | — | 20,024 |
| StateBattleInitialize.c | 7.35% | 62.17% | — | 36,800 |
| StatePreBattle.c | 3.87% | 76.15% | — | 35,944 |
| StatePostBattle.c | 1.31% | 90.08% | — | 31,776 |
| StateConfig.c | 22.96% | 51.36% | — | 23,768 |
| StateTreasures.c | 100% | 0.00% | — | 9,440 |
| StateShop.c | 30.51% | 31.63% | — | 49,352 |
| StateConquest.c | 14.49% | 85.48% | — | 56,408 |
| StateEdit.c | 7.33% | 67.04% | — | 85,952 |
| StateSetupEmpMogi.c | 15.40% | 60.26% | — | 9,664 |
| SceneTitle.c | 0.75% | 27.60% | — | 80,632 |
| SceneLoading.c | 5.12% | 47.07% | — | 23,456 |
| ScenePreBattle.c | 1.04% | 26.68% | — | 75,264 |
| SceneTutorial.c | 15.74% | 72.58% | — | 36,080 |
| Empire mode (18) | 8.75% | 73.27% | — | 743,828 |
| emp_FldBase.c | 14.17% | 79.78% | — | 97,112 |
| emp_cq_main.c | 8.38% | 91.62% | — | 122,972 |
| emp_cq_text.c | 9.47% | 36.84% | — | 3,040 |
| emp_ending.c | 9.53% | 75.13% | — | 17,464 |
| emp_ending_nenpyou.c | 6.67% | 57.25% | — | 15,120 |
| emp_ev_predata.c | 8.63% | 76.32% | — | 73,256 |
| emp_ev_station.c | 2.22% | 82.56% | — | 60,472 |
| emp_ev_still.c | 10.54% | 58.11% | — | 69,536 |
| emp_free_setup.c | 3.73% | 41.13% | — | 53,256 |
| emp_sc.c | 3.70% | 42.53% | — | 5,192 |
| emp_war_fix.c | 17.64% | 82.29% | — | 45,000 |
| emp_war_tl.c | 15.05% | 64.61% | — | 23,600 |
| emp_war_wllt.c | 14.81% | 77.18% | — | 30,144 |
| emp_zuroku.c | 3.88% | 73.10% | — | 47,424 |
| emp_zuroku_bushou.c | 0.61% | 87.22% | — | 10,456 |
| emp_zuroku_graph.c | 5.42% | 57.59% | — | 33,928 |
| emp_zuroku_movie.c | 1.19% | 96.72% | — | 2,680 |
| StationEmp.c | 3.47% | 60.60% | — | 33,176 |
| Battlefield (12) | 3.44% | 41.09% | — | 516,868 |
| Field.c | 9.78% | 61.33% | — | 28,480 |
| Stage.c | 8.16% | 46.20% | — | 29,792 |
| StgAmbient.c | 0.37% | 11.73% | — | 26,048 |
| StgTexture.c | 2.00% | 34.90% | — | 76,040 |
| DistantView.c | 2.10% | 48.47% | — | 41,840 |
| BgManager.c | 5.12% | 13.76% | — | 59,024 |
| Bullet.c | 0.35% | 99.65% | — | 36,580 |
| Weapon.c | 3.32% | 52.62% | — | 55,936 |
| ObjAction.c | 2.85% | 70.08% | — | 47,224 |
| RelayCamera.c | 0.17% | 6.27% | — | 54,952 |
| MiniMap.c | 0.10% | 13.83% | — | 16,080 |
| effect.c | 8.06% | 41.18% | — | 44,872 |
| Models and motion (5) | 2.03% | 32.19% | — | 246,168 |
| ModelManager.c | 2.42% | 71.87% | — | 35,696 |
| MotionManager.c | 2.18% | 11.42% | — | 52,160 |
| HorseModel.c | 2.60% | 30.47% | — | 95,952 |
| FlagModel.c | 1.19% | 36.64% | — | 18,776 |
| ItemModel.c | 0.62% | 26.43% | — | 43,584 |
| Events and scripts (9) | 5.01% | 47.82% | — | 378,408 |
| ev_main.c | 7.40% | 54.03% | — | 14,480 |
| ev_config.c | 4.50% | 34.57% | — | 55,496 |
| ev_message.c | 4.01% | 41.69% | — | 26,760 |
| sc_ctrl.c | 6.75% | 60.80% | — | 31,784 |
| sc_sysmsg.c | 0.84% | 57.91% | — | 34,368 |
| sc_ubase.c | 8.43% | 91.36% | — | 42,880 |
| MovieTelop.c | 1.36% | 51.59% | — | 24,624 |
| SeasonAnime.c | 17.71% | 50.80% | — | 31,624 |
| BriefingCmnParts.c | 2.02% | 30.60% | — | 116,392 |
| Interface and system (6) | 3.56% | 39.95% | — | 578,424 |
| cmnparts.c | 2.61% | 91.69% | — | 47,192 |
| font.c | 1.74% | 35.11% | — | 193,992 |
| file.c | 3.92% | 22.90% | — | 141,496 |
| SeManager.c | 7.95% | 70.60% | — | 35,400 |
| JapanMap.c | 9.82% | 64.86% | — | 60,776 |
| SecretSorts.c | 1.66% | 23.00% | — | 99,568 |
| Game data (21) | 0.00% | 0.00% | 100% | 0 |
| ANS stream | 0.00% | 0.00% | 100% | 0 |
| MPEG2 | 0.00% | 0.00% | 100% | 0 |
| TIM2 | 0.00% | 0.00% | 100% | 0 |
| TMD2 | 0.00% | 0.00% | 100% | 0 |
| Battlefield | 0.00% | 0.00% | 100% | 0 |
| PS2 | 0.00% | 0.00% | 100% | 0 |
| Motion | 0.00% | 0.00% | 100% | 0 |
| Event motions | 0.00% | 0.00% | 100% | 0 |
| EFB | 0.00% | 0.00% | 100% | 0 |
| ADPCM sounds | 0.00% | 0.00% | 100% | 0 |
| tm3 | 0.00% | 0.00% | 100% | 0 |
| IPU | 0.00% | 0.00% | 100% | 0 |
| Containers | 0.00% | 0.00% | 100% | 0 |
| Text | 0.00% | 0.00% | 100% | 0 |
| Game state tables | 0.00% | 0.00% | 100% | 0 |
| Event commands | 0.00% | 0.00% | 100% | 0 |
| LZ archive | 0.00% | 0.00% | 100% | 0 |
| Sound bank headers | 0.00% | 0.00% | 100% | 0 |
| PAC0 | 0.00% | 0.00% | 100% | 0 |
| Sound tables | 0.00% | 0.00% | 100% | 0 |
| Save icon | 0.00% | 0.00% | 100% | 0 |
History
DecompiledMatchingDataClick the chart to see the project at that commit.
Reports up to this one (315)
| When | Decompiled | Matching | Data | Commit |
|---|---|---|---|---|
| 59.13% -0.92% | 6.43% -0.01% | 100% | b0b652f Generated files use real prototypes (src/sw2e_protos.h from tools/make_protos.py): calls fixed against the callees' definitions (146 missing arguments recovered from the machine code, extra arguments | |
| 60.05% +0.11% | 6.45% | 100% | 564d09b gen17_180000.c: func_00386900 (stack arguments read from the original call sites, row table copied per iteration) | |
| 59.94% +0.16% | 6.45% | 100% | 5b5c98e gen16_180000.c: 6 generated functions | |
| 59.78% -0.09% | 6.45% | 100% | 14f610d Generated files: remove 5 functions passing integer values to float parameters | |
| 59.87% +0.27% | 6.45% | 100% | bef09a8 gen15_180000.c: 17 generated functions (callers kept when a callee's arity is wrong) | |
| 59.60% +0.29% | 6.45% | 100% | 41cc043 gen13_170000.c, gen14_180000.c: 32 generated functions (stored addresses read and written as ps2ptr) | |
| 59.31% +0.42% | 6.44% | 100% | 5417db0 gen12_180000.c: 17 generated functions (pointer sign conversions cast) | |
| 58.90% +1.70% | 6.44% +0.01% | 100% | b26555d gen11_180000.c: 127 generated functions (pointer and PS2 address conversions repaired in the port's form) | |
| 57.20% +1.18% | 6.44% | 100% | a32b02e gen10_180000.c: 90 generated functions (size within 25 %, calls and return values checked against the machine code) | |
| 56.01% +0.29% | 6.44% +0.05% | 100% | 811eb8f gen9_180000.c: 18 generated functions (scratchpad variables read through their address); remove 24 generated functions with lost return values or arguments | |
| 55.72% -0.28% | 6.39% | 100% | 8ab9abb Generated files: remove 13 functions whose calls dropped stack or pass-through arguments | |
| 56.01% +0.85% | 6.39% +0.01% | 100% | 5ee81c1 gen8_180000.c: 49 generated functions (integer offsets index globals, PS2 addresses converted at use) | |
| 55.16% +0.07% | 6.38% | 100% | e1e2b4f gen7_180000.c: 7 generated functions using pointer tables | |
| 55.08% +0.31% | 6.38% | 100% | 653c685 gen6_180000.c: 30 generated functions with 64-bit GS packet fields | |
| 54.78% +0.59% | 6.38% +0.01% | 100% | f6215d5 gen4/gen5_180000.c: 46 more generated functions (hex float arguments, goto, pointer loads through PS2_PTR) | |
| 54.18% +0.66% | 6.36% +0.02% | 100% | 4687504 gen3_180000.c: 48 generated functions with float prototypes, size-checked | |
| 53.52% +1.05% | 6.35% +0.03% | 100% | 019c62c gen2_180000.c: 106 generated functions following the port rules (pointer locals, arrays), size-checked | |
| 52.47% | 6.32% +0.03% | 100% | a596c02 Resolve every ARG_UNKNOWN from the disassembly; fix swapped and missing call arguments | |
| 52.47% | 6.29% +1.57% | 100% | 434cdd3 Restore matching tags lost while the matcher could not find sw2e_draw.h | |
| 52.47% | 4.71% -1.47% | 100% | b5fe55f sw2e_draw.h: shared drawing prototypes; complete stack arguments dropped by Ghidra (ARG_UNKNOWN where not yet traced) |
Badges
For your README. They show the default version and update with every report.
[](https://decompilati.onl/projects/samurai-warriors-2-empire)
[](https://decompilati.onl/projects/samurai-warriors-2-empire)
[](https://decompilati.onl/projects/samurai-warriors-2-empire)
[](https://decompilati.onl/projects/samurai-warriors-2-empire)