fix(native): preserve endpoint context in function comparisons

This commit is contained in:
morluto committed 2026-10-24 01:47:31 +08:00
1 parent 211e3533b3
commit edf7b3d32c
12 files changed
+638 -117

No files matched your search

@@ -2,7 +2,7 @@ import type { Evidence } from "../evidence.js";
import type { FunctionDossier } from "../hopperValues.js";
import { digestCanonicalValue } from "../canonicalDigest.js";
import {
isAutoName,
hasStableFunctionName,
normalizeCfg,
} from "../functionComparisonNormalization.js";
import { assessFunctionCallCoverage } from "../functionCallCoverage.js";
@@ -29,9 +29,7 @@ export const functionStructuralCandidate = (
if (
cfg === null ||
cfg.length === 0 ||
dossier.callees.some(
(callee) => isAutoName(callee.name) || callee.name.length === 0,
)
dossier.callees.some((callee) => !hasStableFunctionName(callee.name))
)
return null;
const calls = dossier.callees