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

LOUD:合成最强与最弱规范

LOUD: Synthesizing Strongest and Weakest Specifications

Kanghee Park, Xuanyu Peng, Loris D'Antoni

AI总结:

本文提出LOUD框架,解决非确定性程序规范合成问题,支持存在量词,合成最强L-后果与最弱L-蕴含项,并实现ASPIRE求解器用于错误识别、属性提取和博弈策略合成。

摘要:

本文解决了为非确定性程序合成规范的问题。对于此类程序,有用的规范可以捕获恶魔属性,这些属性对每次非确定性执行都成立,同时也可以捕获天使属性,这些属性对某些非确定性执行成立。我们基于Park等人最近提出的框架进行构建,在该框架中,给定(i)关于一组函数定义提出的无量词查询(即我们希望为其生成规范的行为),以及(ii)一种语言L,其中每个提取的属性都要用该语言表达(我们称语言L中的属性为L-属性),目标是合成一个L-属性的合取,使得每个合取项都是该查询的最强L-后果:每个属性都是查询的过度近似,并且不存在其他L-属性过度近似查询且比每个属性严格更精确。该框架不适用于非确定性程序,原因有二:它不支持查询中的存在量词(这对于表达非确定性是必要的),并且它只能计算L-后果,即它不适合同时捕获天使属性和恶魔属性。本文解决了这两个局限性,并提出了一个框架LOUD,用于为可能涉及存在量词的查询合成最强L-后果和最弱L-蕴含项(即查询的欠近似)。我们实现了一个求解器ASPIRE,用于解决以LOUD表达的问题,该求解器可用于描述和识别确定性和非确定性程序中的错误来源,从并发程序中提取属性,以及合成双人博弈中的获胜策略。

英文摘要:

This paper tackles the problem of synthesizing specifications for nondeterministic programs. For such programs, useful specifications can capture demonic properties, which hold for every nondeterministic execution, but also angelic properties, which hold for some nondeterministic execution. We build on top of a recently proposed a framework by Park et al. in which given (i) a quantifier-free query posed about a set of function definitions (i.e., the behavior for which we want to generate a specification), and (ii) a language L in which each extracted property is to be expressed (we call properties in the language L-properties), the goal is to synthesize a conjunction of L-properties such that each of the conjunct is a strongest L-consequence for the query: each property is an over-approximation of the query and there is no other L-property that over-approximates the query and is strictly more precise than each property. This framework does not apply to nondeterministic programs for two reasons: it does not support existential quantifiers in queries (which are necessary to expressing nondeterminism) and it can only compute L-consequences, i.e., it is unsuitable for capturing both angelic and demonic properties. This paper addresses these two limitations and presents a framework, LOUD, for synthesizing both strongest L-consequences and weakest L-implicants (i.e., under-approximations of the query) for queries that can involve existential quantifiers. We implement a solver, ASPIRE, for problems expressed in LOUD which can be used to describe and identify sources of bugs in both deterministic and nondeterministic programs, extract properties from concurrent programs, and synthesize winning strategies in two-player games.

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

↑