The Effect of Pointer Analysis on Semantic Conflict Detection

📅 2025-07-26
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Semantic conflicts—semantic inconsistencies arising despite syntactically correct text merges—are poorly detected by existing merge tools, while static analysis approaches suffer from low precision and high false-positive rates. This paper systematically investigates the role of pointer analysis in static semantic conflict detection: we design and evaluate two detectors—with and without pointer analysis—on two real-world datasets. Results show that incorporating pointer analysis significantly reduces false positives and timeout rates, but at the cost of substantially degraded recall and F1 score, leading to a sharp increase in missed detections. This reveals the fundamental limitations of relying on a single static analysis paradigm. We thus propose, for the first time, a hybrid detection framework that integrates coarse-grained (high-recall) and fine-grained (high-precision) analyses—balancing accuracy and practicality. Our approach offers a scalable, principled solution to semantic conflict detection in software merging.

Technology Category

Application Category

📝 Abstract
Current merge tools don't detect semantic conflicts, which occur when changes from different developers are textually integrated but semantically interfere with each other. Although researchers have proposed static analyses for detecting semantic conflicts, these analyses suffer from significant false positive rates. To understand whether such false positives could be reduced by using pointer analysis in the implementation of semantic conflict static analyses, we conduct an empirical study. We implement the same analysis with and without pointer analysis, run them on two datasets, observe how often they differ, and compare their accuracy and computational performance. Although pointer analysis is known to improve precision in static analysis, we find that its effect on semantic conflict detection can be drastic: we observe a significant reduction in timeouts and false positives, but also a significant increase in false negatives, with prohibitive drops in recall and F1-score. These results suggest that, in the context of semantic conflict detection, we should explore hybrid analysis techniques, combining aspects of both implementations we compare in our study.
Problem

Research questions and friction points this paper is trying to address.

Detect semantic conflicts in merged code changes
Reduce false positives in static conflict analysis
Evaluate pointer analysis impact on detection accuracy
Innovation

Methods, ideas, or system contributions that make the work stand out.

Uses pointer analysis for semantic conflict detection
Compares accuracy with and without pointer analysis
Proposes hybrid techniques to improve detection
🔎 Similar Papers
No similar papers found.
M
Matheus Barbosa
Universidade Federal de Pernambuco, Recife, Brazil
Paulo Borba
Paulo Borba
Federal University of Pernambuco
Software EngineeringProgramming Languages
R
Rodrigo Bonifácio
Universidade de Brasília, Brasília, Brazil
V
Victor Lira
Instituto Federal de Pernambuco, Palmares, Brazil
G
Galileu Santos
Universidade Federal de Pernambuco, Recife, Brazil