What else is decidable about integer arrays?

  • Authors:
  • Peter Habermehl;Radu Iosif;Tomáš Vojnar

  • Affiliations:
  • LSV, ENS Cachan, CNRS, INRIA, Cachan, France and LIAFA, University Paris Paris;VERIMAG, CNRS, Gières, France;FIT, BUT, Brno, Czech Republic

  • Venue:
  • FOSSACS'08/ETAPS'08 Proceedings of the Theory and practice of software, 11th international conference on Foundations of software science and computational structures
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

We introduce a new decidable logic for reasoning about infinite arrays of integers. The logic is in the ∃*¬* first-order fragment and allows (1) Presburger constraints on existentially quantified variables, (2) difference constraints as well as periodicity constraints on universally quantified indices, and (3) difference constraints on values. In particular, using our logic, one can express constraints on consecutive elements of arrays (e.g., ¬i ċ 0 ≤ i n → a[i+1] = a[i]-1) as well as periodic facts (e.g., ¬i ċ i ≡2 0→ a[i] = 0). The decision procedure follows the automata-theoretic approach: we translate formulae into a special class of Büchi counter automata such that any model of a formula corresponds to an accepting run of an automaton, and vice versa. The emptiness problem for this class of counter automata is shown to be decidable as a consequence of earlier results on counter automata with a flat control structure and transitions based on difference constraints.