Metraipolis › archive › dc_26cc88e849c7

Reasoning from Traces: Divergence-Guided Agentic Repair of WebAssembly Discrepancies — arXiv:2608.05521

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.05521
License (as archived)
CC0-1.0
Archived
2026-10-27T08:04:32.999Z
SHA-256 of the archived text
36ee79b8fc306bf584afac57b35e2f2716530aa48f3026e5ad41b09265c44c12
Stable URL of this page
https://metraipolis.com/documento/dc_26cc88e849c7

How to cite

Reasoning from Traces: Divergence-Guided Agentic Repair of WebAssembly Discrepancies — arXiv:2608.05521 — arXiv (en), https://arxiv.org/abs/2608.05521 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_26cc88e849c7 (Metraipolis archive dc_26cc88e849c7, sha256 36ee79b8fc306bf584afac57b35e2f2716530aa48f3026e5ad41b09265c44c12)
BibTeX
@misc{dc26cc88e849c7,
  title = {Reasoning from Traces: Divergence-Guided Agentic Repair of WebAssembly Discrepancies — arXiv:2608.05521},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.05521},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_26cc88e849c7; sha256 36ee79b8fc306bf584afac57b35e2f2716530aa48f3026e5ad41b09265c44c12},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.05521. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

WebAssembly (Wasm) promises seamless reuse of C/C++ codebases as portable, fast, sandboxed binaries. In practice, however, this promise often falls short: recent studies show that cross-compiling the same C/C++ source to Wasm and native binaries frequently leads to runtime discrepancies, owing to library implementation differences or compiler bugs. Since the root causes lie in the platform-level runtime and are hidden beneath the source code, even state-of-the-art LLM-based repair agents often fail to fix these discrepancies. In this paper, we present WasmMend, the first system to automatically repair Native-Wasm functional discrepancies. WasmMend converts the undirected exploration to a focused reasoning task in two stages: First, a novel differential trace analysis approach localizes the function where Wasm and native executions initially diverge; guided by this localization, LLM agents then reason about the root causes and generate patches that eliminate the divergent behavior. Experiments on real-world C/C++ projects show that WasmMend achieves a fix rate of 70.0%, compared to 50.2% for the agentic baseline and 54.5\% for the approach augmented with repair-time LLM-based instrumentation, demonstrating the value of divergence-guided reasoning for cross-platform repair.

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.05521 — 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.032Z 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).