论文标题
低延迟环境的可扩展型分析
Scalable Typestate Analysis for Low-Latency Environments
论文作者
论文摘要
基于胶合物的静态分析对于证明代码合同的正确性很重要。此类分析依靠确定性有限自动机(DFA)来指定对象的属性。我们针对低延迟环境中合同的分析,其中许多有用的合同不切实际地编纂为DFA和/或其相关DFA的大小会导致低于PAR的性能。为了解决此瓶颈,我们基于一种可以简洁指定代码合同的表达性规范语言提出了轻巧的型分析仪。通过在静态分析仪中实施它,与现有技术相比,我们证明了相当大的性能和可用性优势。一个中心见解是依靠具有有效比特矢量操作的DFA子类。
Static analyses based on typestates are important in certifying correctness of code contracts. Such analyses rely on Deterministic Finite Automata (DFAs) to specify properties of an object. We target the analysis of contracts in low-latency environments, where many useful contracts are impractical to codify as DFAs and/or the size of their associated DFAs leads to sub-par performance. To address this bottleneck, we present a lightweight typestate analyzer, based on an expressive specification language that can succinctly specify code contracts. By implementing it in the static analyzer Infer, we demonstrate considerable performance and usability benefits when compared to existing techniques. A central insight is to rely on a sub-class of DFAs with efficient bit-vector operations.