计算机科学 > 程序设计语言
[提交于 2024年4月9日]
标题:SAT-DIFF: A Tree Diffing Framework Using SAT Solving
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Computing differences between tree-structured data is a critical but challenging problem in software analysis. In this paper, we propose a novel tree diffing approach called SatDiff, which reformulates the structural diffing problem into a MaxSAT problem. By encoding the necessary transformations from the source tree to the target tree, SatDiff generates correct, minimal, and type safe low-level edit scripts with formal guarantees. We then synthesize concise high-level edit scripts by effectively merging low-level edits in the appropriate topological order. Our empirical results demonstrate that SatDiff outperforms existing heuristic-based approaches by a significant margin in terms of conciseness while maintaining a reasonable runtime.
提交历史
来自:Chuqin Geng[v1] 2024年4月9日 星期二 00:00:00 UTC