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

通过反应合成调整行为

Adapting Behaviors via Reactive Synthesis

Gal Amram, Suguman Bansal, Dror Fried, Lucas M. Tabajara, Moshe Y. Vardi, Gera Weiss

摘要:

在\emph{Adapter Design Pattern}中,程序员通过构造访问现有\emph{Adaptee}代码的\emph{Adapter}来实现\emph{Target}接口。在这项工作中,我们提出了一个反应性的合成解释的适配器设计模式,其中的算法需要一个\emph{Adaptee}和一个\emph{Target}传感器,其目的是合成一个\emph{Adapter}传感器,当组成的{ \em Adaptee},产生一个行为,这是相当于的行为{ \em目标}。这种算法的一个用途是合成在不同硬件平台上实现类似目标的控制器。虽然这个问题可以用现有的合成算法来解决,但目前最先进的工具无法扩展。为了应付计算复杂性的问题,我们引入了一种特殊形式的规格格式,称为{ \em分离GR($k$)},它可以解决一个可扩展的合成算法,但仍然允许一个大的现实规格。我们解决了分离GR($k$)的可实现性和合成问题,并展示了如何利用我们的规范的分离性质,以构建更好的算法,在时间复杂度方面,比已知的GR($k$)合成算法。然后,我们描述了一个工具,称为SGR($k$),我们已经实现了上述方法的基础上,并显示,通过实验评估,我们的工具如何优于目前最先进的工具在各种基准和测试用例。

英文摘要:

In the \emph{Adapter Design Pattern}, a programmer implements a \emph{Target} interface by constructing an \emph{Adapter} that accesses an existing \emph{Adaptee} code. In this work, we present a reactive synthesis interpretation to the adapter design pattern, wherein an algorithm takes an \emph{Adaptee} and a \emph{Target} transducers, and the aim is to synthesize an \emph{Adapter} transducer that, when composed with the {\em Adaptee}, generates a behavior that is equivalent to the behavior of the {\em Target}. One use of such an algorithm is to synthesize controllers that achieve similar goals on different hardware platforms. While this problem can be solved with existing synthesis algorithms, current state-of-the-art tools fail to scale. To cope with the computational complexity of the problem, we introduce a special form of specification format, called {\em Separated GR($k$)}, which can be solved with a scalable synthesis algorithm but still allows for a large set of realistic specifications. We solve the realizability and the synthesis problems for Separated GR($k$), and show how to exploit the separated nature of our specification to construct better algorithms, in terms of time complexity, than known algorithms for GR($k$) synthesis. We then describe a tool, called SGR($k$), that we have implemented based on the above approach and show, by experimental evaluation, how our tool outperforms current state-of-the-art tools on various benchmarks and test-cases.

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

↑