计算机科学 > 程序设计语言
[提交于 2020年2月20日 (v1),最后修订于 2020年6月11日 (此版本, v2)]
标题:RustHorn: CHC-based Verification for Rust Programs (full version)
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Reduction to the satisfiability problem for constrained Horn clauses (CHCs) is a widely studied approach to automated program verification. The current CHC-based methods for pointer-manipulating programs, however, are not very scalable. This paper proposes a novel translation of pointer-manipulating Rust programs into CHCs, which clears away pointers and memories by leveraging ownership. We formalize the translation for a simplified core of Rust and prove its correctness. We have implemented a prototype verifier for a subset of Rust and confirmed the effectiveness of our method.