On the linear ranking problem for integer linear-constraint loops
Amir M. Ben-Amram, Samir Genaim · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · 2013
In this paper we study the complexity of the Linear Ranking problem: given a loop, described by linear constraints over a finite set of integer variables, is there a linear ranking function for this loop? While existence of such a function implies termination, this problem is not equivalent to termination. When the variables range over the rationals or reals, the Linear Ranking problem is known to be PTIME decidable. However, when they range over the integers, whether for single-path or multipath loops, the complexity of the Linear Ranking problem has not yet been determined. We show that it is coNP-complete. However, we point out some special cases of importance of PTIME complexity. We also present complete algorithms for synthesizing linear ranking functions, both for the general case and the special PTIME cases.
Cited by 52 works. doi:10.1145/2429069.2429078
Authors
References
- Computers and Intractability: A Guide to the Theory of NP-Completeness
- Reducibility among Combinatorial Problems
- Theory of Linear and Integer Programming
- A Strongly Polynomial Algorithm to Solve Combinatorial Linear Programs
- Some efficient solutions to the affine scheduling problem. I. One-dimensional time
- The octagon abstract domain
- The size-change principle for program termination
- A Complete Method for the Synthesis of Linear Ranking Functions
- The Parma Polyhedra Library: Toward a complete set of numerical abstractions for the analysis and verification of hardware and software systems
- Termination proofs for systems code