Verifying Semantic Conflict-Freedom in Three-Way Program Merges
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- Balancing precision and performance in structured mergeAutomated Software Engineering, 2014
- Precise reasoning for programs using containersACM SIGPLAN Notices, 2011
- Inference rules for proving the equivalence of recursive proceduresActa Informatica, 2008
- Relational separation logicTheoretical Computer Science, 2007
- Secure Information Flow as a Safety Problem2005
- Extended static checking for Java2002
- A program integration algorithm that accommodates semantics-preserving transformationsACM SIGSOFT Software Engineering Notes, 1990
- Integrating noninterfering versions of programsACM Transactions on Programming Languages and Systems, 1989