Repository navigation
[AUTOMATED] [PROPOSAL] shared-project-export: export the same C from the browser as from decompile-project - #1960
Merged
Conversation
[AUTOMATED] Docs-only proposal (docs/features/shared-project-export/): kuna_wasm's `project` re-implements the decompile-project export in address order and differs from it on fauxware and mcount_x86_64. Move the call graph and the callee-first decompile into kuna-console and give both surfaces one export.
The CallGraph query and Args field lists named the wrong items: is_ok is Result::is_ok, and recording/stated belong to the kuna_callerargs ledger. List what callee_first actually reads, add custom_reg_callers, image.rs and the result store's codec to what moves, and record that tempfile::tempfile() panics on wasm32-wasip1. kuna_wasm does not accept --option. Name the diff tool behind the line counts, add the .asm difference and the protoorder-off identity, and the errortoomanyinstructions loader difference. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
Contributor
|
[AUTOMATED] Pushed 0d3444f, a docs-only correction to the bundle. The repro, the numbers and the cause all check out at a3351f8.
|
mahaloz
marked this pull request as ready for review
November 25, 2026 11:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
decompile.run's "C code" download (
kuna_wasm <binary> <specs> project) exports different C thankuna decompile-projectdoes for the same binary:On
mcount_x86_64, 36,213 of the.c's 172,079 lines differ, and 3,210 of the.h's 3,638. The differences are record names (struct_16againststruct_31) and argument types (void *v1againstunsigned long v1).kuna_wasm'sprojectcopies the export but decompiles in address order. It cannot reach the callee-first order (protoorder) the CLI takes by default on a whole binary, which lives inkuna-cliwith the call graph it walks.This draft is docs only (
docs/features/shared-project-export/):callgraphanddecompile_all/callee_first.rsintokuna-console, unchanged, withkuna-clire-exporting them.kuna_console::project::export: the decompile in the decided order, the sort, the prelude and types, and the four builders.decompile_projectandkuna_wasm::projectboth call it.--jobs,--streamand the two loaders stay as they are.kuna_wasmprojectartifacts must equaldecompile-project's on the export fixtures, except the README path row. It fails today.The analysis lists what callee-first needs: eight
CallGraphqueries and sixArgsfields. It also asks where the call graph should live.Model:
anthropic/claude-opus-5-5