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

用于程序验证的谓词配对

Predicate Pairing for Program Verification

Emanuele De Angelis, Fabio Fioravanti, Alberto Pettorossi, Maurizio Proietti

摘要:

命令式程序部分正确性的验证可以归结为约束Horn子句的可满足性问题。然而,基于谓词抽象的最先进的CHC求解器(CHC求解器)有时无法验证可满足性,因为它们寻找在给定的A类约束中可定义的模型,称为A-可定义模型。我们介绍了一种转换技术,称为谓词配对(PP),这是能够,在许多有趣的情况下,一组条款转换成一个equisatisifiable集,其可满足性可以证明通过找到一个A-可定义的模型,因此可以有效地验证CHC求解器。我们证明,在非常一般的条件下,A,展开/折叠变换规则保持存在的A-可定义的模型,即,如果原始子句具有A-可定义模型,则转换后的子句具有A-可定义模型。反之一般不成立,我们提供了适当的条件下,转换条款有一个A-可定义的模型当且仅当原来的有一个A-可定义的模型。然后,我们提出了PP战略,指导应用的转换规则的目标,推导出一组条款,其可满足性可以证明通过寻找A-可定义的模型。PP引入了一个由两个谓词的合取加上一些约束定义的新谓词。我们通过一些例子表明,一个A-可定义的模型可能存在的新谓词,即使它不存在其定义原子合取。我们还提出了一些案例研究,表明PP在程序的关系属性的验证中起着至关重要的作用(例如,程序等价性和非干扰性)。最后,我们进行了实验评估,以评估PP在提高CHC解决能力方面的有效性。

英文摘要:

It is well-known that the verification of partial correctness properties of imperative programs can be reduced to the satisfiability problem for constrained Horn clauses (CHCs). However, state-of-the-art solvers for CHCs (CHC solvers) based on predicate abstraction are sometimes unable to verify satisfiability because they look for models that are definable in a given class A of constraints, called A-definable models. We introduce a transformation technique, called Predicate Pairing (PP), which is able, in many interesting cases, to transform a set of clauses into an equisatisfiable set whose satisfiability can be proved by finding an A-definable model, and hence can be effectively verified by CHC solvers. We prove that, under very general conditions on A, the unfold/fold transformation rules preserve the existence of an A-definable model, i.e., if the original clauses have an A-definable model, then the transformed clauses have an A-definable model. The converse does not hold in general, and we provide suitable conditions under which the transformed clauses have an A-definable model iff the original ones have an A-definable model. Then, we present the PP strategy which guides the application of the transformation rules with the objective of deriving a set of clauses whose satisfiability can be proved by looking for A-definable models. PP introduces a new predicate defined by the conjunction of two predicates together with some constraints. We show through some examples that an A-definable model may exist for the new predicate even if it does not exist for its defining atomic conjuncts. We also present some case studies showing that PP plays a crucial role in the verification of relational properties of programs (e.g., program equivalence and non-interference). Finally, we perform an experimental evaluation to assess the effectiveness of PP in increasing the power of CHC solving.

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

↑