arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2312.16652cs.SE
收藏

基于不变量的程序修复

Invariant-based Program Repair

Omar I. Al-Bataineh

AI总结:

本文提出一种基于程序不变量的形式化通用自动化程序修复框架,通过动态推断正确与可疑不变量并结合严格程序分析生成和验证补丁,且在性能错误修复中验证了其有效性。

摘要:

本文描述了一个基于程序不变量概念的形式化通用自动化程序修复(APR)框架。在所提出的修复框架中,通过动态分析缺陷程序的执行轨迹来推断规约 $φ_{correct}$ 和 $φ_{violated}$,其中 $φ_{correct}$ 表示一次运行成功所需的可能不变量(良好模式)集合,而 $φ_{violated}$ 表示导致缺陷程序中错误的可能可疑不变量(不良模式)集合。随后,使用严格的程序分析技术对这些规约进行精化,这些技术还用于推动修复过程生成可行补丁,并评估所生成补丁的正确性。我们通过开发一个用于性能错误的基于不变量的修复系统,证明了在 APR 中利用不变量的实用性。初步分析表明,基于不变量的 APR 在处理性能错误方面是有效的,它生成的补丁可确保程序效率提升,且不会对其功能产生不利影响。

英文摘要:

This paper describes a formal general-purpose automated program repair (APR) framework based on the concept of program invariants. In the presented repair framework, the execution traces of a defected program are dynamically analyzed to infer specifications $φ_{correct}$ and $φ_{violated}$, where $φ_{correct}$ represents the set of likely invariants (good patterns) required for a run to be successful and $φ_{violated}$ represents the set of likely suspicious invariants (bad patterns) that result in the bug in the defected program. These specifications are then refined using rigorous program analysis techniques, which are also used to drive the repair process towards feasible patches and assess the correctness of generated patches.We demonstrate the usefulness of leveraging invariants in APR by developing an invariant-based repair system for performance bugs. The initial analysis shows the effectiveness of invariant-based APR in handling performance bugs by producing patches that ensure program's efficiency increase without adversely impacting its functionality.

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

↑