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

概率属性文法的修复

On Repair with Probabilistic Attribute Grammars

Manos Koukoutos, Mukund Raghothaman, Etienne Kneuss, Viktor Kuncak

摘要:

程序合成和修复已经成为一个令人兴奋的研究领域,由程序员生产力革命性进步的潜力驱动。在最有前途的想法出现的综合是语法驱动的搜索,概率模型的代码,并使用输入输出的例子。我们的论文展示了如何将这些技术结合起来,并将它们用于程序修复,这是综合到通用代码中最相关的应用之一。我们的方法结合了语义规范,在形式的前,后条件和输入输出的例子与语法规范的形式长期语法和AST级的统计数据提取的代码语料库。我们表明,在这个框架中的合成可以被看作是一个实例的图搜索,允许使用的技术,如A* 的良好理解的家庭。我们实现我们的算法的验证,合成和修复的功能程序的框架,证明我们的方法可以修复程序,超出了以前的工具。

英文摘要:

Program synthesis and repair have emerged as an exciting area of research, driven by the potential for revolutionary advances in programmer productivity. Among most promising ideas emerging for synthesis are syntax-driven search, probabilistic models of code, and the use of input-output examples. Our paper shows how to combine these techniques and use them for program repair, which is among the most relevant applications of synthesis to general-purpose code. Our approach combines semantic specifications, in the form of pre- and post-conditions and input-output examples with syntactic specifications in the form of term grammars and AST-level statistics extracted from code corpora. We show that synthesis in this framework can be viewed as an instance of graph search, permitting the use of well-understood families of techniques such as A*. We implement our algorithm in a framework for verification, synthesis and repair of functional programs, demonstrating that our approach can repair programs that are beyond the reach of previous tools.

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

↑