×

Cell morphing: from array programs to array-free Horn clauses. (English) Zbl 1394.68081

Rival, Xavier (ed.), Static analysis. 23rd international symposium, SAS 2016, Edinburgh, UK, September 8–10, 2016. Proceedings. Berlin: Springer (ISBN 978-3-662-53412-0/pbk; 978-3-662-53413-7/ebook). Lecture Notes in Computer Science 9837, 361-382 (2016).
Summary: Automatically verifying safety properties of programs is hard. Many approaches exist for verifying programs operating on Boolean and integer values (e.g. abstract interpretation, counterexample-guided abstraction refinement using interpolants), but transposing them to array properties has been fraught with difficulties. Our work addresses that issue with a powerful and flexible abstraction that morphes concrete array cells into a finite set of abstract ones. This abstraction is parametric both in precision and in the back-end analysis used.
From our programs with arrays, we generate nonlinear Horn clauses over scalar variables only, in a common format with clear and unambiguous logical semantics, for which there exist several solvers. We thus avoid the use of solvers operating over arrays, which are still very immature.
Experiments with our prototype vaphor show that this approach can prove automatically and without user annotations the functional correctness of several classical examples, including selection sort, bubble sort, insertion sort, as well as examples from literature on array analysis.
For the entire collection see [Zbl 1344.68015].

MSC:

68N30 Mathematical aspects of software engineering (specification, verification, metrics, requirements, etc.)
03B70 Logic in computer science