Repository navigation
Conversation
A rule cap that counts rule applications per thread and can stop one rule after its first n, checked once per rule attempt in ActionPool::process_op and inert unless armed; Funcdata::vararg_folded, the register-save stores the varargsave fold removes; kuna_narrowext::rules_for for a given mode; IfaceStatus::last_command; and interface::quote_filename, moved from kuna-cli so other callers can reach it. With every hook unset kuna's output is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…inst the machine code kuna-verify runs a function's SLEIGH p-code and kuna's final Funcdata from the same random machine state, and compares the calls each makes and their arguments, the memory written outside the frame and the value returned. `check` runs it on functions of a binary, `corpus` on every decompile the datatest corpus makes, and `mutate` plants faults on kuna's side to measure how many the check catches. Slices C1, C2 and C4 of the diffverify proposal. Rule localization, concolic inputs, single-instruction (Tier L) and symbolic (Tier S) checks, the function oracle, the calling-convention model check and the CI baseline come in their own changes. Every corpus verdict matches the unsplit tool's on the same base. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sjkim1127
force-pushed
the
diffverify-core
branch
from
December 5, 2026 01:36
51739b1 to
78ae1ba
Compare
This branch has not been deployed
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.
The second of the pieces #1830 is split into, on top of #2107 (whose commit it carries; review from
78ae1ba67). It addskuna-verify, a dev-only tool that answers one question about a decompiled function: does kuna's final IR compute what the machine code computes? Nothing it does changes kuna's output, and the releasekunabinary does not link it.make binaries specs (cd decompiler && cargo build --release -p kuna-verify) decompiler/target/release/kuna-verify corpus tests/stages/kuna-narrowext.xmlThe first pass of that stage test turns
narrowextoff and brings the bug back; the check names the input and both results without anyone reading the C. The default pass agrees.Funcdatafrom the same random state, and compares each call (target, arguments, the memory a callee can read), the memory written outside the frame and the return value, under the calling convention and, with--contract FILE.c, the real C return type.DIVERGES(id), and one the check cannot decide isUNKNOWN(reason), neverAGREES.checktakes functions of a binary,corpusevery decompile a datatest script makes (one worker process per file),mutateplants faults on kuna's side and reports how many are caught (74–76% on the corpus,lsandfind).docs/features/diffverify/README.mdis the guide.Tests: 92 in the crate (
cargo test -p kuna-verify), each pinning a verdict the check once got wrong. Every verdict overtests/datatestsandtests/stages(5,707 functions) is the same as the unsplit tool's on the same base.🤖 Generated with Claude Code
Model:
anthropic/claude-opus-5-5