Mata:一个快速且简单的有限自动机库(技术报告)
Mata, a Fast and Simple Finite Automata Library (Technical Report)
AI总结:
本文介绍了一个用 C++ 编写的快速且简单的有限自动机库 Mata,它实现了模拟归约和反链语言包含检查等算法,提供 C++ 和 Python 接口,并在大规模基准上显著快于其他自动机库,同时支撑了高性能字符串求解器 Z3-Noodler。
摘要:
Mata 是一个用 C++ 编写的、经过精心设计的自动机库,提供了速度与简单性的独特结合。它旨在服务于字符串约束求解和正则表达式推理等应用,并作为自动机算法的参考实现。除了针对(非)确定性自动机的基本算法外,它还实现了快速的模拟归约和基于反链的语言包含检查。其简单性允许直接访问底层结构,使其相对容易扩展和修改。除了 C++ API 之外,该库还实现了 Python 绑定。该库附带了一个大规模的自动机问题基准集,这些问题收集自字符串约束求解、正则模型检查和正则表达式推理等相关应用。我们表明,在我们收集的广泛自动机库中,Mata 在该基准上的速度显著快于所有其他库。基于 Mata 构建的字符串求解器 Z3-Noodler 证明了其在字符串约束求解中的实用性,该求解器在许多标准基准上优于最先进的字符串约束求解技术。
英文摘要:
Mata is a well-engineered automata library written in C++ that offers a unique combination of speed and simplicity. It is meant to serve in applications such as string constraint solving and reasoning about regular expressions, and as a~reference implementation of automata algorithms. Besides basic algorithms for (non)deterministic automata, it implements a fast simulation reduction and antichain-based language inclusion checking. The simplicity allows a straightforward access to the low-level structures, making it relatively easy to extend and modify. Besides the C++ API, the library also implements a Python binding. The library comes with a large benchmark of automata problems collected from relevant applications such as string constraint solving, regular model checking, and reasoning about regular expressions. We show that Mata is on this benchmark significantly faster than all libraries from a wide range of automata libraries we collected. Its usefulness in string constraint solving is demonstrated by the string solver Z3-Noodler, which is based on Mata and outperforms the state of the art in string constraint solving on many standard benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。