Flowchart Programs, Regular Expressions, and Decidability of Polynomial Growth-Rate
Amir M. Ben-Amram, Aviad Pineles

TL;DR
This paper introduces a new method for analyzing flowchart programs to decide if their computed values and runtime are polynomially bounded, extending previous results to more general, Turing-incomplete flowcharts with arbitrary control flow.
Contribution
We propose a class of loop-annotated flowcharts and a novel polynomial-time analysis technique inspired by automata-to-regular expression translation, enabling decidability of polynomial growth for this class.
Findings
Decidable polynomial bounds for flowchart programs with arbitrary control flow.
A polynomial-time analysis technique inspired by automata and regular expressions.
Extension of decidability results to more general flowchart classes.
Abstract
We present a new method for inferring complexity properties for a class of programs in the form of flowcharts annotated with loop information. Specifically, our method can (soundly and completely) decide if computed values are polynomially bounded as a function of the input; and similarly for the running time. Such complexity properties are undecidable for a Turing-complete programming language, and a common work-around in program analysis is to settle for sound but incomplete solutions. In contrast, we consider a class of programs that is Turing-incomplete, but strong enough to include several challenges for this kind of analysis. For a related language that has well-structured syntax, similar to Meyer and Ritchie's LOOP programs, the problem has been previously proved to be decidable. The analysis relied on the compositionality of programs, hence the challenge in obtaining similar…
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.
