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

从复杂规格合成传感器

Synthesizing Transducers from Complex Specifications

Anvay Grover, Ruediger Ehlers, Loris D'Antoni

摘要:

自动化字符串转换一直是程序合成的杀手级应用之一。解决这个问题的现有合成器使用领域特定语言(DSL)生成程序,这些语言被设计成帮助合成器,因此缺乏良好的形式属性。这种限制阻止了合成程序被用于验证应用(例如,以检查复杂的前置后置条件),并且由于合成器依赖于给定的DSL而使得合成器难以修改。我们提出了一种基于约束的方法来合成传感器,一个良好的研究模型具有强大的封闭性和可判定性。我们的方法处理三种类型的规范:(i)输入输出的例子,(ii)输入输出类型表示为正则语言,和(iii)输入/输出的距离,约束有多少字符的转换器可以修改时,处理输入字符串。我们的工作是第一个支持这种复杂的规格,它通过使用传感器的算法属性来生成可以使用现成的SMT求解器来解决的约束。我们的合成方法可以扩展到许多传感器模型,它可以使用,由于关闭属性的传感器,计算部分正确的传感器的维修。

英文摘要:

Automating string transformations has been one of the killer applications of program synthesis. Existing synthesizers that solve this problem produce programs in domain-specific languages (DSL) that are engineered to help the synthesizer, and therefore lack nice formal properties. This limitation prevents the synthesized programs from being used in verification applications (e.g., to check complex pre-post conditions) and makes the synthesizers hard to modify due to their reliance on the given DSL. We present a constraint-based approach to synthesizing transducers, a well-studied model with strong closure and decidability properties. Our approach handles three types of specifications: (i) input-output examples, (ii) input-output types expressed as regular languages, and (iii) input/output distances that bound how many characters the transducer can modify when processing an input string. Our work is the first to support such complex specifications and it does so by using the algorithmic properties of transducers to generate constraints that can be solved using off-the-shelf SMT solvers. Our synthesis approach can be extended to many transducer models and it can be used, thanks to closure properties of transducers, to compute repairs for partially correct transducers.

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

↑