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

综合规格

Synthesizing Specifications

Kanghee Park, Loris D'Antoni, Thomas Reps

AI总结:

本文提出了一种自动综合程序规格的方法,通过用户提供的查询和领域特定语言L,生成最佳且穷尽的L-属性集合,并在工具Spyro中实现,适用于规格挖掘、抽象域操作和代数属性综合。

摘要:

每个程序都应附带一个描述代码行为重要方面的规格说明,但编写好的规格往往比编写代码本身更困难。本文解决了在用户提供的两类输入指导下自动综合规格的问题:i) 针对一组函数定义提出的查询,以及 ii) 用于表达提取属性的领域特定语言L(我们称L中的属性为L-属性)。每个属性都是该查询的最佳L-属性:不存在其他严格更精确的L-属性。此外,综合出的L-属性集合是穷尽的:无法再向其中添加更多L-属性以使合取更精确。我们在一款名为Spyro的工具中实现了我们的方法。修改查询和L的能力使Spyro用户能够自定义要综合的规格类型。我们利用这一能力表明,Spyro可用于多种应用,如挖掘程序规格、执行抽象域操作以及综合程序模块的代数属性。

英文摘要:

Every program should be accompanied by a specification that describes important aspects of the code's behavior, but writing good specifications is often harder than writing the code itself. This paper addresses the problem of synthesizing specifications automatically, guided by user-supplied inputs of two kinds: i) a query posed about a set of function definitions, and ii) a domain-specific language L in which the extracted property is to be expressed (we call properties in the language L-properties). Each of the property is a best L-property for the query: there is no other L-property that is strictly more precise. Furthermore, the set of synthesized L-properties is exhaustive: no more L-properties can be added to it to make the conjunction more precise. We implemented our method in a tool, Spyro. The ability to modify both the query and L provides a Spyro user with ways to customize the kind of specification to be synthesized. We use this ability to show that Spyro can be used in a variety of applications, such as mining program specifications, performing abstract-domain operations, and synthesizing algebraic properties of program modules.

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

↑