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

有成本意识的自动程序修复

Cost-Aware Automatic Program Repair

Roopsha Samanta, Oswaldo Olivo, E. Allen Emerson

摘要:

我们提出了一个正式的框架修复无限状态,命令式,顺序程序,(可能是递归的)过程和多个断言;该框架可以通过在多个程序位置修改原始错误程序来生成修复程序,并且可以使用用户定义的表达式模板来确保修复程序的可读性;该框架还生成一组归纳断言,其用作修复程序的正确性的证明。作为集成程序员的意图和直觉在自动程序修复的一步,我们提出了一个“成本意识”的制定-给定的成本函数与允许的语句修改,目标是确保总的程序修改成本不超过给定的修复预算。作为我们的谓词抽象为基础的解决方案框架的一部分,我们提出了一个健全的和完整的算法修复布尔程序。我们已经开发了一个基于SMT解决的原型工具,并成功地使用它来修复基准C程序中的各种错误。

英文摘要:

We present a formal framework for repairing infinite-state, imperative, sequential programs, with (possibly recursive) procedures and multiple assertions; the framework can generate repaired programs by modifying the original erroneous program in multiple program locations, and can ensure the readability of the repaired program using user-defined expression templates; the framework also generates a set of inductive assertions that serve as a proof of correctness of the repaired program. As a step toward integrating programmer intent and intuition in automated program repair, we present a " cost-aware" formulation - given a cost function associated with permissible statement modifications, the goal is to ensure that the total program modification cost does not exceed a given repair budget. As part of our predicate abstraction-based solution framework, we present a sound and complete algorithm for repair of Boolean programs. We have developed a prototype tool based on SMT solving and used it successfully to repair diverse errors in benchmark C programs.

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

↑