arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.15533cs.PLcs.LGcs.LOcs.SE
收藏

基于测试库合同的验证

Verification Modulo Tested Library Contracts

Indian Institute of Science(印度科学研究院);University of Illinois Urbana-Champaign, Department of Computer Science(伊利诺伊大学厄巴纳-香槟分校计算机科学系);University of Wisconsin(威斯康星大学)

Abhishek Uppar, Omar Muhammad, Sumanth Prabhu, Deepak D'Souza, Madhusudan P, Adithya Murali

AI总结:

本文提出了一种基于测试库合同的验证方法,通过合成模块化合同和上下文合同来确保客户端程序的正确性,并利用反例引导学习框架进行验证。

摘要:

我们考虑了验证模测试库合同的问题,作为自动化验证使用复杂库的客户端程序的一步。我们将此问题表述为合成适用于证明客户端正确性的模块化合同,并且这些合同能通过测试引擎的审查。我们还考虑了一种新的方法合同形式,称为上下文合同,在此设置中出现,且通常比经典模块化合同更简单易推断。我们提供了一个反例引导学习框架来解决这个问题,在此框架中,合成器与约束求解器以及测试引擎交互,以推断合适的模块化/上下文方法合同和归纳不变量。主要的合成引擎是使用ICE学习算法实现的一般化CHC求解器。我们实现这个框架在一个名为DUALIS的工具中,并在客户端调用大型库的基准测试中展示了其有效性。

英文摘要:

We consider the problem of verification modulo tested library contracts as a step towards automating the verification of client programs that use complex libraries. We formulate this problem as the synthesis of modular contracts for the library methods used by the client that are adequate to prove the client correct, and that also pass the scrutiny of a testing engine that tests the library against these contracts. We also consider a new form of method contracts called contextual contracts that arise in this setting that hold in the context of the client program, and can often be simpler and easier to infer than classical modular contracts. We provide a counterexample-guided learning framework to solve this problem, in which the synthesizer interacts with a constraint solver as well as the testing engine in order to infer adequate modular/contextual method contracts and inductive invariants for the client. The main synthesis engines we use are generalizing CHC solvers that are realized using ICE learning algorithms. We realize this framework in a tool called DUALIS and show its efficacy on benchmarks where clients call large libraries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑