Linear types for large-scale systems verification
Linear types for large-scale systems verification
复制标题
用于大规模系统验证的线性类型
DOI:
10.1145/3527313
复制
发表时间:
2022
影响因子:
--
通讯作者:
Hawblitzel, Chris
中科院分区:
文献类型:
--
作者:
Li, Jialin;Lattuada, Andrea;Zhou, Yi;Cameron, Jonathan;Howell, Jon;Parno, Bryan;Hawblitzel, Chris
Reasoning about memory aliasing and mutation in software verification is a hard problem. This is especially true for systems using SMT-based automated theorem provers. Memory reasoning in SMT verification typically requires a nontrivial amount of manual effort to specify heap invariants, as well as extensive alias reasoning from the SMT solver. In this paper, we present a hybrid approach that combines linear types with SMT-based verification for memory reasoning. We integrate linear types into Dafny, a verification language with an SMT backend, and show that the two approaches complement each other. By separating memory reasoning from verification conditions, linear types reduce the SMT solving time. At the same time, the expressiveness of SMT queries extends the flexibility of the linear type system. In particular, it allows our linear type system to easily and correctly mix linear and nonlinear data in novel ways, encapsulating linear data inside nonlinear data and vice-versa. We formalize the core of our extensions, prove soundness, and provide algorithms for linear type checking. We evaluate our approach by converting the implementation of a verified storage system (about 24K lines of code and proof) written in Dafny, to use our extended Dafny. The resulting system uses linear types for 91% of the code and SMT-based heap reasoning for the remaining 9%. We show that the converted system has 28% fewer lines of proofs and 30% shorter verification time overall. We discuss the development overhead in the original system due to SMT-based heap reasoning and highlight the improved developer experience when using linear types.
登录
查看更多内容
DOI:
--
发表时间:
2006
期刊:
World Congress on Formal Methods
影响因子:
--
作者:
Ioannis T. Kassios
通讯作者:
Ioannis T. Kassios
DOI:
--
发表时间:
2021
期刊:
Proc. ACM Program. Lang.
影响因子:
--
作者:
Aymeric Fromherz;Aseem Rastogi;N. Swamy;Sydney Gibson;Guido Martínez;Denis Merigoux;T. Ramananandro
通讯作者:
T. Ramananandro
DOI:
--
发表时间:
2021
期刊:
--
影响因子:
--
作者:
Ankit Bhardwaj;C. Kulkarni;Reto Achermann;I. Calciu;Sanidhya Kashyap;Ryan Stutsman;Amy Tai;Gerd Zellweger
通讯作者:
Ankit Bhardwaj;C. Kulkarni;Reto Achermann;I. Calciu;Sanidhya Kashyap;Ryan Stutsman;Amy Tai;Gerd Zellweger
DOI:
--
发表时间:
2020
期刊:
--
影响因子:
--
作者:
Vikram Narayanan;Tianjiao Huang;David Detweiler;Daniel M. Appel;Zhaofeng Li;Gerd Zellweger;A. Burtsev
通讯作者:
Vikram Narayanan;Tianjiao Huang;David Detweiler;Daniel M. Appel;Zhaofeng Li;Gerd Zellweger;A. Burtsev
DOI:
--
发表时间:
2020
期刊:
Proc. ACM Program. Lang.
影响因子:
--
作者:
N. Swamy;Aseem Rastogi;Aymeric Fromherz;Denis Merigoux;Danel Ahman;Guido Martínez
通讯作者:
Guido Martínez