RustHorn: CHC-based Verification for Rust Programs
RustHorn: CHC-based Verification for Rust Programs
复制标题
RustHorn:基于 CHC 的 Rust 程序验证
DOI:
10.1145/3462205
复制
发表时间:
2021
影响因子:
1.3
通讯作者:
Kobayashi Naoki
中科院分区:
文献类型:
--
作者:
Matsushita Yusuke;Tsukada Takeshi;Kobayashi Naoki
Reduction to satisfiability of constrained Horn clauses (CHCs) is a widely studied approach to automated program verification. Current CHC-based methods, however, do not work very well for pointer-manipulating programs, especially those with dynamic memory allocation. This article presents a novel reduction of pointer-manipulating Rust programs into CHCs, which clears away pointers and memory states by leveraging Rust’s guarantees on permission. We formalize our reduction for a simplified core of Rust and prove its soundness and completeness. We have implemented a prototype verifier for a subset of Rust and confirmed the effectiveness of our method.