You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Real-Hopper verifier for caller/callee chains #342
P0: criticalCritical issue requiring immediate attentionarea: bridgeHopper bridge (Python) related changesarea: nativeNative analysis and decompilation, including Ghidra, IDA, and Hopper analysis behaviorarea: testsTest suite and verificationenhancementNew feature or requestprovider: hopperAnalysis provider / engine: hoppertriageAwaiting triage and prioritization
Run the licensed real-Hopper verifier to prove caller/callee chains across main, entry, branch, and leaf functions, including typed identities and instruction-level string/name reference edges.
Acceptance:
Assertion layer rejects value-only reference matches from another procedure.
Global-name references are bound to the queried procedure address.
Partly. One direct tail branch (_call_direct → _target_fn), checked consistently across procedure_callees, procedure_callers (including forward provenance), analyze_function, backward get_call_graph and trace_call_path (goal_status: reached)
…across main, entry, branch, and leaf functions
No. Only the tail-branch pair is asserted; no main/entry → leaf chain
Instruction-level name reference edges
Yes for the branch site: the incoming reference must match source_address, source_procedure.address, target_procedure.address and call.classification: "direct"
Instruction-level string reference edges
No string references are asserted
Rejects value-only reference matches from another procedure
Yes, via the matchingRef source-procedure binding above
Global-name references bound to the queried procedure address
Partly. The queried target's incoming reference is bound by address; global names are not separately exercised
Results survive npm run check
Not established here. On main, npm run check currently fails in knip and lint:typed in files unrelated to this verifier (observed while preparing #11685)
The run also verified fixture immutability (SHA-256 unchanged), monotonic progress, cancellation after partial scan progress, and a successful retry on the large fixture.
Gaps: the run used the demo Hopper build, while the issue asks for a licensed one, and the verifier does not exercise the main/entry/leaf chain or string reference edges.
If it helps, I can extend verify-real-hopper-callers.mjs, or its fixture, to cover a main → entry → branch → leaf chain plus string and global-name reference edges, and re-run it on this host. Would that be the right way to close out this issue?
Correction to my earlier comment: the full main → entry → branch → leaf chain is already covered by npm run verify:hopper, not by the callers verifier. It uses tests/conformance/c/fixture.c through verifyRealHopperFixture.
On current main that verifier failed on my host for two stale verifier assumptions (details and fixes in #11800). With #11800 applied, it passes with real Hopper (6.6.2-demo, macOS 26.6.2 arm64):
_main 0x100000670 → _rea_entry 0x10000063c → _rea_branch 0x1000005e4 → _rea_leaf 0x1000005ac, with caller/callee identities checked at each step;
entryStrings 1 (REA_C_ENTRY), leafStrings 1 (REA_C_LEAF), leafNames 3 (including the rea_c_global name reference);
outgoing references from procedure_references match the dossier's.
Remaining gap against this issue: the run used the demo Hopper build, not a licensed one.
Closing as implemented: scripts/lib/real-hopper-semantic.mjs (verifyRealHopperFixture with HOPPER_C_ORACLE covering main -> rea_entry -> rea_branch -> rea_leaf), scripts/lib/real-hopper-assertions.mjs (requireReferencedValue binding referenced_strings and referenced_names to source_address and outgoing_references), and scripts/verify-real-hopper-callers.mjs (npm run verify:hopper:callers) verify real-Hopper caller/callee chains and instruction-level reference binding.
P0: criticalCritical issue requiring immediate attentionarea: bridgeHopper bridge (Python) related changesarea: nativeNative analysis and decompilation, including Ghidra, IDA, and Hopper analysis behaviorarea: testsTest suite and verificationenhancementNew feature or requestprovider: hopperAnalysis provider / engine: hoppertriageAwaiting triage and prioritization
Activity
Diego-9612 commentedon Nov 17, 2026
I ran the existing real-Hopper caller verifier on current
mainand it passes. Results below, mapped to the acceptance criteria.Environment: macOS 26.6.2 (arm64), Hopper Disassembler 6.6.2-demo (not a licensed build), Xcode Command Line Tools clang, Node 24.22.1 (
.nvmrc).mainat7107abf8.Command:
npm run verify:hopper:callers→ exit 0 (about 22 s includingbuild:cached).What this run covers (from
scripts/verify-real-hopper-callers.mjs):_call_direct→_target_fn), checked consistently acrossprocedure_callees,procedure_callers(including forward provenance),analyze_function, backwardget_call_graphandtrace_call_path(goal_status: reached)source_address,source_procedure.address,target_procedure.addressandcall.classification: "direct"matchingRefsource-procedure binding abovenpm run checkmain,npm run checkcurrently fails inknipandlint:typedin files unrelated to this verifier (observed while preparing #11685)The run also verified fixture immutability (SHA-256 unchanged), monotonic progress, cancellation after partial scan progress, and a successful retry on the large fixture.
Gaps: the run used the demo Hopper build, while the issue asks for a licensed one, and the verifier does not exercise the main/entry/leaf chain or string reference edges.
If it helps, I can extend
verify-real-hopper-callers.mjs, or its fixture, to cover a main → entry → branch → leaf chain plus string and global-name reference edges, and re-run it on this host. Would that be the right way to close out this issue?Diego-9612 commentedon Nov 17, 2026
Correction to my earlier comment: the full main → entry → branch → leaf chain is already covered by
npm run verify:hopper, not by the callers verifier. It usestests/conformance/c/fixture.cthroughverifyRealHopperFixture.On current
mainthat verifier failed on my host for two stale verifier assumptions (details and fixes in #11800). With #11800 applied, it passes with real Hopper (6.6.2-demo, macOS 26.6.2 arm64):_main0x100000670 →_rea_entry0x10000063c →_rea_branch0x1000005e4 →_rea_leaf0x1000005ac, with caller/callee identities checked at each step;entryStrings 1(REA_C_ENTRY),leafStrings 1(REA_C_LEAF),leafNames 3(including therea_c_globalname reference);procedure_referencesmatch the dossier's.Remaining gap against this issue: the run used the demo Hopper build, not a licensed one.
fix(hopper-verifier): identify switched targets through the session
morluto commentedon Nov 24, 2026
Closing as implemented:
scripts/lib/real-hopper-semantic.mjs(verifyRealHopperFixturewithHOPPER_C_ORACLEcoveringmain->rea_entry->rea_branch->rea_leaf),scripts/lib/real-hopper-assertions.mjs(requireReferencedValuebindingreferenced_stringsandreferenced_namestosource_addressandoutgoing_references), andscripts/verify-real-hopper-callers.mjs(npm run verify:hopper:callers) verify real-Hopper caller/callee chains and instruction-level reference binding.fix(hopper-verifier): restore npm run verify:hopper on current main
fix(hopper-verifier): identify switched targets through the session