计算机科学 > 程序设计语言
[提交于 2014年1月24日]
标题:From Safety To Termination And Back: SMT-Based Verification For Lazy Languages
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:SMT-based verifiers have long been an effective means of ensuring safety properties of programs. While these techniques are well understood, we show that they implicitly require eager semantics; directly applying them to a lazy language is unsound due to the presence of divergent sub-computations. We recover soundness by composing the safety analysis with a termination analysis. Of course, termination is itself a challenging problem, but we show how the safety analysis can be used to ensure termination, thereby bootstrapping soundness for the entire system. Thus, while safety invariants have long been required to prove termination, we show how termination proofs can be to soundly establish safety. We have implemented our approach in liquidHaskell, a Refinement Type-based verifier for Haskell. We demonstrate its effectiveness via an experimental evaluation using liquidHaskell to verify safety, functional correctness and termination properties of real-world Haskell libraries, totaling over 10,000 lines of code.
提交历史
来自:Niki Vazou[v1] 2014年1月24日 星期五 00:45:45 UTC