feat(decompile): retain contextual flow structure - #754
Open
Jon-Becker wants to merge 1 commit into
Open
Conversation
Contributor
❌ AI Evaluation Suite for 554fc16Completed heimdall-eval. View workflow run. 📊 View evaluation scores
|
Contributor
✅ Coverage Report for a248f24
|
Jon-Becker
force-pushed
the
feat/contextual-control-flow-regions
branch
from
September 6, 2026 21:41
a5cd474 to
87fd8a4
Compare
Jon-Becker
force-pushed
the
feat/decompiler-control-flow-sidecar
branch
from
September 6, 2026 21:41
b5be299 to
554fc16
Compare
Contributor
Benchmark for a248f24Click to view benchmark
|
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.
What changed? Why?
Retains canonical contextual control-flow structure in the decompiler sidecar.
CanonicalAnalysisnow keeps theContextualControlFlowartifact from #753 alongside the canonical program, abstract CFG, versioned expression arenas, contextual SSA, effects, and selector mappings. Upcoming function and region recovery can therefore consume dominators, post-dominators, SCCs, natural loops, irreducibility, and uncertainty without rebuilding or flattening the graph.Legacy Solidity/Yul and ABI generation remain unchanged.
This PR is stacked on #753.
Notes to reviewers
ContextualCfg, preserving ID consistency with SSA blocks and selector points.control_flow.uncertaintybefore treating observed graph structure as complete.How has it been tested?
cargo test -p heimdall-decompiler --lib— 75 passedcargo check --workspace --all-targets— passedcargo +nightly fmt --all -- --check— passedgit diff --check— passed