Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
On the termination of integer loops
Ben-Amram A., Genaim S., Masud A. ACM Transactions on Programming Languages and Systems34 (4):1-24,2012.Type:Article
Date Reviewed: Mar 7 2013

“Does a given program halt?” is perhaps the simplest question that one could ask of programs. It has fascinated computer scientists and has been at the root of a number of deep results ever since the earliest undecidability results by Turing. This paper carries on in this tradition and illuminates yet another part of this inexhaustible space of problems.

Since we know that the problem of termination in general is undecidable, it is only natural to analyze the space of programs and identify subclasses where the problem is decidable. This line of thought has led to some elegant results showing the decidability of certain linear loops [1,2]. This leads to the question of how tight these results are.

The authors present some extensions of linear loops and prove undecidability results for them. They also investigate variants of the termination problem, considering termination on given inputs in contrast with termination on all inputs, and prove undecidability results for these variants.

One extension introduces an instruction for testing the sign of a number. This instruction does not have the expressive power of a general conditional statement, but termination for even this is shown to be undecidable by a reduction to the problem of termination of a two-counter machine, which is known to be undecidable.

The other extension is motivated by practical applications in program analysis and introduces the notion of an integer constraint loop that could be used to represent an abstraction of a program. Though the paper is not able to construct a simulation of a two-counter machine, it demonstrates a simulation of Petri nets, thereby establishing a lower bound on the termination problem for integer constraint loops.

The paper contains a number of interesting and even curious results. For example, the introduction of at least a single irrational constant in linear constraint loops is necessary to encode a simulation of two-counter programs. The authors use an expressibility result from mixed integer programming to prove this result!

The paper opens up a number of interesting follow-up questions of both theoretical and practical interest, which can provide fodder for future research in this area.

Reviewer:  Prahladavaradan Sampath Review #: CR140994 (1306-0529)
1) Braverman, M. Termination of linear programs. In Computer-Aided Verification Alur, R., Peled, D., Eds. Springer, 2004, 70–82.
2) Braverman, M. Termination of integer linear programs. In Computer Aided Verification Ball, T., Jones, R. B., Eds. Springer, 2006, 372–385.
Bookmark and Share
 
General (F.2.0 )
 
 
Mathematical Logic (F.4.1 )
 
 
Specifying And Verifying And Reasoning About Programs (F.3.1 )
 
Would you recommend this review?
yes
no
Other reviews under "General": Date
Algorithms in C
Sedgewick R., Addison-Wesley Longman Publishing Co., Inc., Boston, MA, 1990. Type: Book (9780201514254)
Sep 1 1991
Algorithms from P to NP (vol. 1)
Moret B., Shapiro H. (ed), Benjamin-Cummings Publ. Co., Inc., Redwood City, CA, 1991. Type: Book (9780805380088)
May 1 1992
The design and analysis of algorithms
Kozen D. (ed), Springer-Verlag New York, Inc., New York, NY, 1992. Type: Book (9780387976877)
Sep 1 1992
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy