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

CFAAR:控制流变更以辅助维修

CFAAR: Control Flow Alteration to Assist Repair

Chadi Trad, Rawad Abou Assi, Wes Masri, Fadi Zaraket

摘要:

我们提出CFAR,程序修复援助技术,通过选择性地改变可疑谓词的结果,以产生预期的行为。CFAAR适用于在特定条件下通过否定谓词可修复的缺陷。CFAAR的收益如下:1)它识别谓词,使得在给定实例处否定它们将使失败的测试表现出正确的行为; 2)对于每个候选谓词,它使用程序状态信息来构建指示何时应该否定谓词的分类器; 3)对于每个分类器,它利用决策树来合成要呈现给开发人员的补丁。我们使用IntroClass和Siemens基准测试中的149个缺陷来评估我们的工具集。CFAR确定了91个潜在的候选缺陷,并为其中41个生成了合理的补丁。其中12个补丁被认为是正确的,而其余的则为开发人员提供修复帮助。

英文摘要:

We present CFAAR, a program repair assistance technique that operates by selectively altering the outcome of suspicious predicates in order to yield expected behavior. CFAAR is applicable to defects that are repairable by negating predicates under specific conditions. CFAAR proceeds as follows: 1) it identifies predicates such that negating them at given instances would make the failing tests exhibit correct behavior; 2) for each candidate predicate, it uses the program state information to build a classifier that dictates when the predicate should be negated; 3) for each classifier, it leverages a Decision Tree to synthesize a patch to be presented to the developer. We evaluated our toolset using 149 defects from the IntroClass and Siemens benchmarks. CFAAR identified 91 potential candidate defects and generated plausible patches for 41 of them. Twelve of the patches are believed to be correct, whereas the rest provide repair assistance to the developer.

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

↑