Abstract
We address the problem of computing semantic differences between a program and a patched version of the program. Our goal is to obtain a precise characterization of the difference between program versions, or establish their equivalence. We focus on infinite-state numerical programs, and use abstract interpretation to compute an overapproximation of program differences.
Computing differences and establishing equivalence under abstraction requires abstracting relationships between variables in the two programs. Towards that end, we use a correlating abstract domain to compute a sound approximation of these relationships which captures semantic difference. This approximation can be computed over any interleaving of the two programs. However, the choice of interleaving can significantly affect precision.We present a speculative search algorithm that aims to find an interleaving of the two programs with minimal abstract semantic difference. This method is unique as it allows the analysis to dynamically alternate between several interleavings.
We have implemented our approach and applied it to realworld examples including patches from Git, GNU Coreutils, as well as a few handpicked patches from the Linux kernel and the Mozilla Firefox web browser. Our evaluation shows that we compute precise approximations of semantic differences, and report few false differences.
| Original language | English |
|---|---|
| Title of host publication | Proceedings of the Conference on Object-Oriented Programming Systems, Languages, and Applications, OOPSLA |
| Pages | 811-828 |
| Number of pages | 18 |
| ISBN (Electronic) | 9781450325851 |
| DOIs | |
| State | Published - 15 Oct 2014 |
| Event | 2014 ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA 2014 - Portland, United States Duration: 20 Oct 2014 → 24 Oct 2014 |
Publication series
| Name | Proceedings of the Conference on Object-Oriented Programming Systems, Languages, and Applications, OOPSLA |
|---|
Conference
| Conference | 2014 ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA 2014 |
|---|---|
| Country/Territory | United States |
| City | Portland |
| Period | 20/10/14 → 24/10/14 |
All Science Journal Classification (ASJC) codes
- Software