Repository navigation
Conversation
sjkim1127
marked this pull request as ready for review
December 2, 2026 23:17
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>
… which a function differs For a function kuna-verify finds DIFFERS, `localize` holds one rule back at a time through the rule cap and bisects how many of its applications are allowed, so that with k - 1 the function agrees over every run and with k it differs. It reports those applications by rule and address, under the same contract and options as `check`. Slice C3 of the diffverify proposal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sjkim1127
force-pushed
the
diffverify-localize
branch
from
December 5, 2026 01:36
ce7c55b to
adc86b9
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 third piece of #1830's split, on top of #2108 (whose commits it carries; review from
adc86b9e8). Whenkuna-verifysays a functionDIFFERS,localizenames the rule applications after which it starts to differ.make binaries specs (cd decompiler && cargo build --release -p kuna-verify) decompiler/target/release/kuna-verify localize tests/stages/kuna-narrowext.xml cscWith
narrowextoff, thepropagatecopyat 0x10036 carries the unextended byte on.k - 1the function agrees over every run, withkit differs. Every other rule runs as usual.kis a candidate to look at, not a proof that it is the only cause. The output says so.--contractand--options ascheck;--pass Npicks one decompile of a datatest script.Tests:
localize_names_the_copy_rulepins the result above;localize_uses_the_contractchecks that a difference only the contract shows is localized only with the contract. Run over the corpus's 113DIFFERS, it names 15 down to a rule application; the rest come from actions (docs/features/diffverify/c3-results.md).🤖 Generated with Claude Code
Model:
anthropic/claude-opus-5-5