Efficient Interpolation for the Theory of Arrays

04/19/2018
by   Jochen Hoenicke, et al.
0

Existing techniques for Craig interpolation for the quantifier-free fragment of the theory of arrays are inefficient for computing sequence and tree interpolants: the solver needs to run for every partitioning (A, B) of the interpolation problem to avoid creating AB-mixed terms. We present a new approach using Proof Tree Preserving Interpolation and an array solver based on Weak Equivalence on Arrays. We give an interpolation algorithm for the lemmas produced by the array solver. The computed interpolants have worst-case exponential size for extensionality lemmas and worst-case quadratic size otherwise. We show that these bounds are strict in the sense that there are lemmas with no smaller interpolants. We implemented the algorithm and show that the produced interpolants are useful to prove memory safety for C programs.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/25/2022

General Interpolation and Strong Amalgamation for Contiguous Arrays

Interpolation is an essential tool in software verification, where first...
research
10/14/2020

Interpolation and Amalgamation for Arrays with MaxDiff (Extended Version)

In this paper, the theory of McCarthy's extensional arrays enriched with...
research
06/08/2020

RBF Solver for Quaternions Interpolation

In this paper we adapt the RBF Solver to work with quaternions by taking...
research
05/19/2023

Choose your Colour: Tree Interpolation for Quantified Formulas in SMT

We present a generic tree-interpolation algorithm in the SMT context wit...
research
11/20/2022

Optimal resizable arrays

A resizable array is an array that can grow and shrink by the addition o...
research
06/03/2019

Direct Linear Time Construction of Parameterized Suffix and LCP Arrays for Constant Alphabets

We present the first worst-case linear time algorithm that directly comp...
research
12/06/2017

A note on searching sorted unbalanced three-dimensional arrays

We examine the problem of searching sequentially for a desired real valu...

Please sign up or login with your details

Forgot password? Click here to reset