arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.04269cs.SE
收藏

使用静态分析检测语义冲突

Detecting Semantic Conflicts using Static Analysis

Galileu Santos de Jesus, Paulo Borba, Rodrigo Bonifácio, Matheus Barbosa de Oliveira

AI总结:

本文提出一种基于静态分析的技术,用于检测版本控制合并中未被发现的动态语义冲突,在99个实验单元上评估,其F1分数和召回率优于动态分析方法,精确度与静态分析或定理证明方法相当。

摘要:

版本控制系统工具使开发者能够独立地处理他们的开发任务。这些工具还通过合并操作促进变更的集成,并报告文本冲突。然而,当开发者集成他们的变更时,他们可能会遇到当前合并工具未检测到的其他类型的冲突。在本文中,我们关注动态语义冲突,这种冲突发生在合并报告无文本冲突但导致不良干扰时——在运行时引起意外的程序行为。为了解决这个问题,我们提出了一种技术,探索使用静态分析来检测两位开发者贡献合并时的干扰。我们使用从合并场景中提取的99个实验单元的数据集评估了我们的技术。结果提供了证据表明我们的技术具有显著的干扰检测能力。在F1分数和召回率方面,它优于先前依赖动态分析检测语义冲突的方法,但这些方法显示出更好的精确度。我们的技术精确度与其他利用静态分析或使用定理证明技术检测语义冲突的研究中观察到的精确度相当,尽管整体性能显著提高。

英文摘要:

Version control system tools empower developers to independently work on their development tasks. These tools also facilitate the integration of changes through merging operations, and report textual conflicts. However, when developers integrate their changes, they might encounter other types of conflicts that are not detected by current merge tools. In this paper, we focus on dynamic semantic conflicts, which occur when merging reports no textual conflicts but results in undesired interference - causing unexpected program behavior at runtime. To address this issue, we propose a technique that explores the use of static analysis to detect interference when merging contributions from two developers. We evaluate our technique using a dataset of 99 experimental units extracted from merge scenarios. The results provide evidence that our technique presents significant interference detection capability. It outperforms, in terms of F1 score and recall, previous methods that rely on dynamic analysis for detecting semantic conflicts, but these show better precision. Our technique precision is comparable to the ones observed in other studies that also leverage static analysis or use theorem proving techniques to detect semantic conflicts, albeit with significantly improved overall performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑