三路程序合并中的语义自由
Verifying Semantic Conflict-Freedom in Three-Way Program Merges
摘要:
尽管许多程序员依赖于三向合并工具来集成来自不同分支的更改,但此类工具可能会在集成过程中引入细微的错误。本文旨在通过定义冲突自由的语义概念来缓解这个问题,这确保了合并后的程序不会引入新的不必要的行为。我们还展示了如何使用一种新颖的组合算法来验证此属性,该算法结合了对共享程序片段的轻量级依赖分析和对修改的精确关系推理。我们评估了我们的工具SafeMerge从Github获得的52个真实世界的合并场景,并将结果与文本合并工具进行比较。实验结果表明,我们的方法的好处,语法冲突自由,并表明SafeMerge是精确和实用的。
英文摘要:
Even though many programmers rely on 3-way merge tools to integrate changes from different branches, such tools can introduce subtle bugs in the integration process. This paper aims to mitigate this problem by defining a semantic notion of confict-freedom, which ensures that the merged program does not introduce new unwanted behaviors. We also show how to verify this property using a novel, compositional algorithm that combines lightweight dependence analysis for shared program fragments and precise relational reasoning for the modifications. We evaluate our tool called SafeMerge on 52 real-world merge scenarios obtained from Github and compare the results against a textual merge tool. The experimental results demonstrate the benefits of our approach over syntactic confict-freedom and indicate that SafeMerge is both precise and practical.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。