Understanding automatically-generated patches through symbolic invariant differences
2019 34th IEEE/ACM International Conference on Automated Software …, 2019•ieeexplore.ieee.org
Developer trust is a major barrier to the deployment of automatically-generated patches.
Understanding the effect of a patch is a key element of that trust. We find that differences in
sets of formal invariants characterize patch differences and that implication-based distances
in invariant space characterize patch similarities. When one patch is similar to another it
often contains the same changes as well as additional behavior; this pattern is well-captured
by logical implication. We can measure differences using a theorem prover to verify …
Understanding the effect of a patch is a key element of that trust. We find that differences in
sets of formal invariants characterize patch differences and that implication-based distances
in invariant space characterize patch similarities. When one patch is similar to another it
often contains the same changes as well as additional behavior; this pattern is well-captured
by logical implication. We can measure differences using a theorem prover to verify …
Developer trust is a major barrier to the deployment of automatically-generated patches. Understanding the effect of a patch is a key element of that trust. We find that differences in sets of formal invariants characterize patch differences and that implication-based distances in invariant space characterize patch similarities. When one patch is similar to another it often contains the same changes as well as additional behavior; this pattern is well-captured by logical implication. We can measure differences using a theorem prover to verify implications between invariants implied by separate programs. Although effective, theorem provers are computationally intensive; we find that string distance is an efficient heuristic for implication-based distance measurements. We propose to use distances between patches to construct a hierarchy highlighting patch similarities. We evaluated this approach on over 300 patches and found that it correctly categorizes programs into semantically similar clusters. Clustering programs reduces human effort by reducing the number of semantically distinct patches that must be considered by over 50%, thus reducing the time required to establish trust in automatically generated repairs.
ieeexplore.ieee.org
Showing the best result for this search. See all results