Emanuele De Angelis, Fabio Fioravanti, Alberto Pettorossi, Maurizio Proietti
备注:
Published in Theory and Practice of Logic Programming (TPLP)
发表信息:
DE ANGELIS, E., FIORAVANTI, F., PETTOROSSI, A., & PROIETTI, M. (2018). Predicate Pairing for program verification. Theory and Practice of Logic Programming, 18(2), pages 126-166
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.
Tree dimension in verification of constrained Horn clauses
在本文中,我们将展示如何使用树维的概念,在验证的约束Horn子句(CHCs)。树的维数是其分支复杂性的数值度量,这里的概念适用于Horn子句派生树。零维的导出树对应于使用线性CHC的导出,而更高维的树来自使用非线性CHC的导出。我们展示了如何仪器CHC谓词与一个额外的参数的尺寸,允许CHC验证器的原因对衍生物的尺寸上的界限。给定一个CHCs集合$P$,我们定义了$P$的一个变换,产生一个维度有界的CHCs集合$P^{\leq{k}}$。$P^{\leq{k}}$的推导集合由维数最多为$k$的$P$的推导组成。我们还展示了如何构造一组表示为$P^{>{k}}$的子句,其派生具有超过$k$的维度。然后,我们提出了使用这些结构分解CHC验证问题的算法。这种分解的一个变化考虑连续增加维度的导数。本文包括实施和实验结果的描述。《逻辑程序设计理论与实践》(Theory and Practice of Logic Programming,TPLP)
Towards Relating Ciao Assertions and LPTP Theorems
Universidad Politécnica de Madrid (UPM)(马德里理工大学);IMDEA Software Institute(IMDEA软件研究所);Spanish Council for Scientific Research(西班牙国家研究委员会);Université de La Réunion(留尼汪大学)