Morpheus:数据依赖解析器组合子程序的自动化安全验证
Morpheus: Automated Safety Verification of Data-dependent Parser Combinator Programs
AI总结:
本文提出Morpheus解析器组合子框架,通过可组合效应抽象和丰富规范语言,实现数据依赖解析程序的高效自动化安全验证,并在多个现实应用中验证其有效性。
摘要:
解析器组合子是一种用于组合式构建解析器的著名机制,在编写具有数据依赖和全局状态的丰富语法解析器方面尤为有用。然而,验证使用它们编写的应用程序已被证明具有挑战性,主要原因在于所组合的解析器本质上具有效应性,以及难以推理与解析动作相关联的任意丰富的数据依赖语义动作。在本文中,我们通过定义一个名为Morpheus的解析器组合子框架来解决这些挑战,该框架配备了用于定义专为解析和语义动作设计的可组合效应的抽象,以及一种丰富的规范语言,用于定义构成程序的各个解析器上的安全属性。尽管其抽象提供了与其他解析器组合子系统相同的许多表达性优势,但Morpheus经过精心设计,以产生一条更易于处理的自动化验证路径。我们通过验证多个现实且具有挑战性的解析应用来展示其实用性,其中包括几个涉及非平凡数据依赖关系的案例。
英文摘要:
Parser combinators are a well-known mechanism used for the compositional construction of parsers, and have shown to be particularly useful in writing parsers for rich grammars with data-dependencies and global state. Verifying applications written using them, however, has proven to be challenging in large part because of the inherently effectful nature of the parsers being composed and the difficulty in reasoning about the arbitrarily rich data-dependent semantic actions that can be associated with parsing actions. In this paper, we address these challenges by defining a parser combinator framework called Morpheus equipped with abstractions for defining composable effects tailored for parsing and semantic actions and a rich specification language used to define safety properties over the constituent parsers comprising a program. Even though its abstractions yield many of the same expressivity benefits as other parser combinator systems, Morpheus is carefully engineered to yield a substantially more tractable automated verification pathway. We demonstrate its utility in verifying a number of realistic, challenging parsing applications, including several cases that involve non-trivial data-dependent relations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。