Metraipolis › archive › dc_5e54132f44dc
Improving Debugging in Verification-Aware Languages Through Automated Fault Localization: A Case Study in Dafny — arXiv:2608.05399
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.05399
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-27T08:04:32.391Z
- SHA-256 of the archived text
9d24e0e48e20f2e6154328a9d79efde74180f636d025de97d66afed9204ec19a- Stable URL of this page
https://metraipolis.com/documento/dc_5e54132f44dc
How to cite
Improving Debugging in Verification-Aware Languages Through Automated Fault Localization: A Case Study in Dafny — arXiv:2608.05399 — arXiv (en), https://arxiv.org/abs/2608.05399 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_5e54132f44dc (Metraipolis archive dc_5e54132f44dc, sha256 9d24e0e48e20f2e6154328a9d79efde74180f636d025de97d66afed9204ec19a)
BibTeX
@misc{dc5e54132f44dc,
title = {Improving Debugging in Verification-Aware Languages Through Automated Fault Localization: A Case Study in Dafny — arXiv:2608.05399},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.05399},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_5e54132f44dc; sha256 9d24e0e48e20f2e6154328a9d79efde74180f636d025de97d66afed9204ec19a},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.05399. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Verification-aware languages, like Dafny, integrate formal specifications directly into source code to enable static correctness checks. However, when verification fails, the feedback provided is often limited to the specific condition of the error, such as a violated postcondition, rather than the root cause of the fault. While Dafny's counterexample features provide concrete execution traces, these typically expose a single failing path per assertion failure, leaving the developer to manually look through the entire trace to locate the error. This paper investigates automated fault localization for verification-aware languages by comparing two paradigms: state-based and counterexample-based localization. Our state-based localization strategy replicates the ``snapshot'' methodology of AutoFix by inferring invariants and predicates to identify suspicious program states. The counterexample-based strategy consists of a family of techniques that progressively enrich the use of verifier output: from raw counterexample extraction, to structured single-trace ranking, and to multi-trace aggregation. To validate these methods, we present an evaluation framework using MutDafny to generate a diverse mutant dataset from DafnyBench and measure localization effectiveness using the EXAM score. Our results show that counterexample-based approaches substantially outperform state-based localization in this setting. Structured ranking over a single trace yields the largest improvement over raw counterexample output, while multi-trace aggregation provides additional gains in robustness and debugging utility by increasing coverage and reducing path bias introduced by the solver. These findings demonstrate that effective fault localization in verification-aware languages depends both on using counterexample information, and how that information is structured and diversified. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-07 in cs.SE). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2608.05399 — 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-27T07:55:47.031Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-07?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).