Metraipolis › archive › dc_21c68d48b1a7
Functionally Equivalent or Not? Graph-Grounded Differential Surrogate Execution for Code Equivalence — arXiv:2610.04371
- Source
- arXiv
- Original
- https://arxiv.org/abs/2610.04371
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-06T05:24:29.990Z
- SHA-256 of the archived text
e76d866afd8eb69e97a0f22e2c6700e97685f0afc92d9d65289bfb115d18f6a9- Stable URL of this page
https://metraipolis.com/documento/dc_21c68d48b1a7
How to cite
Functionally Equivalent or Not? Graph-Grounded Differential Surrogate Execution for Code Equivalence — arXiv:2610.04371 — arXiv, https://arxiv.org/abs/2610.04371 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_21c68d48b1a7 (Metraipolis archive dc_21c68d48b1a7, sha256 e76d866afd8eb69e97a0f22e2c6700e97685f0afc92d9d65289bfb115d18f6a9)
BibTeX
@misc{dc21c68d48b1a7,
title = {Functionally Equivalent or Not? Graph-Grounded Differential Surrogate Execution for Code Equivalence — arXiv:2610.04371},
howpublished = {arXiv},
url = {https://arxiv.org/abs/2610.04371},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_21c68d48b1a7; sha256 e76d866afd8eb69e97a0f22e2c6700e97685f0afc92d9d65289bfb115d18f6a9},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv, https://arxiv.org/abs/2610.04371. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Determining whether two programs are functionally equivalent is central to code modernization, patch validation, refactoring, and code-generation evaluation. Yet the usual signals are incomplete: tests cover only finite inputs, textual similarity confuses implementation with behavior, and unconstrained LLM judgments are difficult to audit. Direct execution is often impossible when a program depends on an obsolete, licensed, unavailable, or unsafe environment. We introduce FEAgent, a selective equivalence assessor agent that combines typed program-graph evidence with differential surrogate execution. FEAgent first aligns public interfaces and behaviorally relevant graph anchors, then issues bounded queries over call-flow, control-flow, data-flow, type, import, and effect relations. Next, a branch-aware generator agent proposes discriminating inputs, and two blinded LLM surrogates independently predict source and target observables. Every claim and predicted divergence is recorded in an evidence ledger. A deterministic reconciler then returns EQUIVALENT, INEQUIVALENT, or UNCLEAR rather than forcing a verdict when paths are uncovered or evidence conflicts. We evaluate FEAgent on function-level equivalence and repository-level bug patches, where the existing oracle is a benchmark label or a passing test suite. Every disagreement with that oracle is adjudicated by direct execution, revealing errors in benchmark labels and behavioral divergences missed by unit-test-only scoring. On EquiBench, execution confirms FEAgent's disagreements with published labels on 216 of 1,200 evaluated pairs (18.0%); on SWE-bench Verified, 94 of 331 test-passing agent patches (28.4%) diverge from the reference patch. FEAgent thus serves as an audit layer between testing and formal verification, keeping its evidence reviewable and its uncertainty explicit without claiming a proof of equivalence. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Artificial Intelligence (cs.AI) ; Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2610.04371 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-06T05:24:05.460Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).