计算机科学 > 程序设计语言
[提交于 2015年11月23日 (v1),最后修订于 2017年11月15日 (此版本, v3)]
标题:Automatic Reasoning on Recursive Data-Structures with Sharing
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We consider the problem of automatically verifying programs which manipulate arbitrary data structures. Our specification language is expressive, contains a notion of \emph{separation}, and thus enables a precise specification of \emph{frames}. The main contribution then is a program verification method which combines strongest postcondition reasoning in the form symbolic execution, unfolding recursive definitions of the data structure in question, and a new frame rule to achieve \emph{local reasoning} so that proofs can be compositional. Finally, we present an implementation of our verifier, and demonstrate automation on a number of representative programs. In particular, we present the first automatic proof of a classic graph marking algorithm, paving the way for dealing with a class of programs which traverse a complex data structure.