On Deciding Constant Runtime of Linear Loops
Florian Frohn, J\"urgen Giesl, Peter Giesl, Nils Lommen

TL;DR
This paper proves the decidability of whether certain linear loops with real eigenvalues have bounded runtime, which is crucial for program verification and safety analysis, and provides an implementation of the decision procedure.
Contribution
It establishes the decidability of constant runtime for linear loops with real eigenvalues and implements a decision procedure for practical use.
Findings
Decidability of constant runtime for loops with real eigenvalues.
Implementation of the decision procedure for practical verification.
Relevance to safety and termination analysis in program verification.
Abstract
We consider linear single-path loops of the form \[ \textbf{while} \quad \varphi \quad \textbf{do} \quad \vec{x} \gets A \vec{x} + \vec{b} \quad \textbf{end} \] where is a vector of variables, the loop guard is a conjunction of linear inequations over the variables , and the update of the loop is represented by the matrix and the vector . It is already known that termination of such loops is decidable. In this work, we consider loops where has real eigenvalues, and prove that it is decidable whether the loop's runtime (for all inputs) is bounded by a constant if the variables range over or . This is an important problem in automatic program verification, since safety of linear while-programs is decidable if all loops have constant runtime, and it is closely connected to the existence of multiphase-linear ranking…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFormal Methods in Verification · Logic, programming, and type systems · Software Testing and Debugging Techniques
