通过约束重写归纳验证过程式程序
Verifying Procedural Programs via Constrained Rewriting Induction
AI总结:
本文提出将过程式程序转换为逻辑约束项重写系统,通过扩展重写归纳方法自动验证内存安全性和函数正确性,并证明实现间等价性,无需单独规范语言。
摘要:
本文旨在通过将过程式程序转换为逻辑约束项重写系统(LCTRSs)来开发一种验证方法。为此,我们扩展了基于整数TRS的转换方法,以处理任意数据类型、全局变量、函数调用和数组,并对安全性检查进行编码。然后,我们将现有的重写归纳方法适配到LCTRSs上,并提出一种简单而有效的方程泛化方法。我们证明了可以自动验证内存安全性并证明实际函数的正确性。我们的方法证明了两个实现之间的等价性,因此与其他工作相比,我们不需要在单独规范语言中给出显式规范。
英文摘要:
This paper aims to develop a verification method for procedural programs via a transformation into Logically Constrained Term Rewriting Systems (LCTRSs). To this end, we extend transformation methods based on integer TRSs to handle arbitrary data types, global variables, function calls and arrays, as well as encode safety checks. Then we adapt existing rewriting induction methods to LCTRSs and propose a simple yet effective method to generalize equations. We show that we can automatically verify memory safety and prove correctness of realistic functions. Our approach proves equivalence between two implementations, so in contrast to other works, we do not require an explicit specification in a separate specification language.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。