SAT-DIFF:使用 SAT 求解的树差异比较框架
SAT-DIFF: A Tree Diffing Framework Using SAT Solving
AI总结:
本文提出 SatDiff 树差异比较框架,将结构差异转化为 MaxSAT 问题以生成有形式化保证的最小编辑脚本,并合并得到简洁高级脚本,显著提升结果简洁性。
摘要:
计算树结构数据之间的差异是软件分析中一个关键但具有挑战性的问题。本文提出一种名为 SatDiff 的新型树差异比较方法,将结构差异比较问题重新表述为 MaxSAT 问题。通过对从源树到目标树所需的变换进行编码,SatDiff 生成具有形式化保证的正确、最小且类型安全的低级编辑脚本。随后,我们通过按适当的拓扑顺序有效合并低级编辑,合成简洁的高级编辑脚本。实验结果表明,SatDiff 在简洁性方面显著优于现有基于启发式的方法,同时保持合理的运行时间。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。