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

通过统一合成

Synthesis through Unification

Rajeev Alur, Pavol Cerny, Arjun Radhakrishna

摘要:

给定一个规格说明和一组候选程序(程序空间),程序合成问题是找到一个满足规格说明的候选程序。我们提出的综合通过统一(STUN)的方法,这是一个扩展的反例引导归纳综合(CEGIS)的方法。在CEGIS中,合成器维护输入的子集S和对于S正确的候选程序Prog。合成器反复检查是否存在反例输入c,从而导致Prog在c上的执行不正确。如果是,合成器将S放大到包括c,并从节目空间中挑选一个对新集合S正确的节目。STUN方法扩展了CEGIS的思想,即给定一个对输入子集正确的程序Prog,合成器可以尝试找到一个对其余输入正确的程序Prog'。如果Prog和Prog'可以统一到程序空间中的一个程序中,那么解决方案已经找到。我们提出了一个通用的综合过程的基础上STUN的方法,并专门为三个不同的域提供适当的统一运营商。我们实现了这些专业化的原型工具,我们表明,我们的工具往往表现形式显着优于标准的基准测试工具的基础上一个纯粹的CEGIS方法。

英文摘要:

Given a specification and a set of candidate programs (program space), the program synthesis problem is to find a candidate program that satisfies the specification. We present the synthesis through unification (STUN) approach, which is an extension of the counter-example guided inductive synthesis (CEGIS) approach. In CEGIS, the synthesizer maintains a subset S of inputs and a candidate program Prog that is correct for S. The synthesizer repeatedly checks if there exists a counter-example input c such that the execution of Prog is incorrect on c. If so, the synthesizer enlarges S to include c, and picks a program from the program space that is correct for the new set S. The STUN approach extends CEGIS with the idea that given a program Prog that is correct for a subset of inputs, the synthesizer can try to find a program Prog' that is correct for the rest of the inputs. If Prog and Prog' can be unified into a program in the program space, then a solution has been found. We present a generic synthesis procedure based on the STUN approach and specialize it for three different domains by providing the appropriate unification operators. We implemented these specializations in prototype tools, and we show that our tools often per- forms significantly better on standard benchmarks than a tool based on a pure CEGIS approach.

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

↑