arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1702.06334cs.PLcs.AI
收藏

静态分析指导下的命令程序实例综合

Synthesizing Imperative Programs from Examples Guided by Static Analysis

Korea University(高丽大学)

Sunbeom So, Hakjoo Oh

摘要:

我们提出了一种新的算法,综合了必要的程序介绍编程课程。给定一组输入输出示例和一个部分程序,我们的算法生成与每个示例一致的完整程序。我们的主要思想是结合枚举程序合成和静态分析,积极修剪出一个大的搜索空间,同时保证找到,如果有的话,一个正确的解决方案。我们已经实现了我们的算法在一个工具,称为SIMPL,并评估它的30个问题中使用的入门编程课程。结果表明,SIMPL能够在平均6.6秒内解决基准问题。

英文摘要:

We present a novel algorithm that synthesizes imperative programs for introductory programming courses. Given a set of input-output examples and a partial program, our algorithm generates a complete program that is consistent with every example. Our key idea is to combine enumerative program synthesis and static analysis, which aggressively prunes out a large search space while guaranteeing to find, if any, a correct solution. We have implemented our algorithm in a tool, called SIMPL, and evaluated it on 30 problems used in introductory programming courses. The results show that SIMPL is able to solve the benchmark problems in 6.6 seconds on average.

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

↑