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

反应式程序中集合的类型定向定界

Type-directed Bounding of Collections in Reactive Programs

Tianhan Lu, Pavol Cerny, Bor-Yuh Evan Chang, Ashutosh Trivedi

摘要:

我们的目标是静态验证,在一个给定的反应式程序中,集合变量的长度不会超过一个给定的界限。我们提出了一个可扩展的基于类型的技术,检查每个集合变量有一个给定的细化类型,指定其长度的约束。我们的细化类型的一个新特性是,细化可以引用AST计数器,这些计数器跟踪AST节点执行了多少次。此功能使类型细化能够跟踪有限的流敏感信息。我们生成验证条件,以确保AST计数器的使用一致,并且类型暗示给定的界限。验证条件由现成的SMT求解器排出。实验结果表明,我们的技术是可扩展的,有效地验证反应式程序的集合长度的要求。

英文摘要:

Our aim is to statically verify that in a given reactive program, the length of collection variables does not grow beyond a given bound. We propose a scalable type-based technique that checks that each collection variable has a given refinement type that specifies constraints about its length. A novel feature of our refinement types is that the refinements can refer to AST counters that track how many times an AST node has been executed. This feature enables type refinements to track limited flow-sensitive information. We generate verification conditions that ensure that the AST counters are used consistently, and that the types imply the given bound. The verification conditions are discharged by an off-the-shelf SMT solver. Experimental results demonstrate that our technique is scalable, and effective at verifying reactive programs with respect to requirements on length of collections.

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

↑