In recent years they have been numerous works that aim to automate relational verification. Meanwhile, although Constrained Horn Clauses (CHCs) empower a wide range of verification techniques and tools, they lack the ability to express hyperproperties beyond $k$-safety such as generalized non-interference and co-termination. This paper describes a novel and fully automated constraint-based approach to relational verification. We first introduce a new class of predicate Constraint Satisfaction Problems called pfwCSP where constraints are represented as clauses modulo first-order theories over predicate variables of three kinds: ordinary, well-founded, or functional. This generalization over CHCs permits arbitrary (i.e., possibly non-Horn) clauses, well-foundedness constraints, functionality constraints, and is capable of expressing these relational verification problems. Our approach enables us to express and automatically verify problem instances that require non-trivial (i.e., non-sequential and non-lock-step) self-composition by automatically inferring appropriate schedulers (or alignment) that dictate when and which program copies move. To solve problems in this new language, we present a constraint solving method for pfwCSP based on stratified CounterExample-Guided Inductive Synthesis (CEGIS) of ordinary, well-founded, and functional predicates. We have implemented the proposed framework and obtained promising results on diverse relational verification problems that are beyond the scope of the previous verification frameworks.
翻译:近些年来,它们都是许多旨在使关系核查自动化的工作。与此同时,尽管受约束的《非洲之角条款》赋予了广泛的核查技术和工具,但它们缺乏能力表达超出美元安全的超能力,例如普遍互不干涉和共同终止。本文描述了一种全新的、完全自动化的基于限制的处理关系核查方法。我们首先引入了一种新型的上游限制满意度问题,称为pfwCSP, 其制约表现为条款的模调第一阶理论,它涉及三种类型的上游变数:普通的、有根据的或功能的。这种对《非洲之角条款》的概括化允许任意性(即可能非荣誉)条款、有充分根据的制约、功能限制,并且能够表达这些关联性核查问题。我们的方法使我们能够表达并自动核实需要非三重(即非顺序和非顺序)的问题。我们通过自动推断适当的时间表(或校正)来自动推断决定何时和哪个程序复制正常的流程,从而解决这种功能性核查的制约。