Inference of Termination Conditions for Numerical Loops in Prolog
Numerical computations form an essential part of almost any real-world program. Clearly, in order for a termination analyser to be of practical use it should contain a mechanism for inferring termination of such computations. However, this topic attracted less attention of the research community. In this work we concentrate on automatic termination inference for logic programs depending on numerical computations. Dershowitz et al.  showed that termination of general numerical computations, for instance on floating point numbers, may be counter-intuitive, i.e., the observed behaviour does not necessarily coincide with the theoretically expected one. Thus, we restrict ourselves to integer computations only.
Unable to display preview. Download preview PDF.
- 1.K.R. Apt. From Logic Programming to Prolog. Prentice-Hall Int. Series in Computer Science. Prentice Hall, 1997.Google Scholar
- 3.A. Bossi and N. Cocco. Preserving universal temination through unfold/fold. In G. Levi and M. Rodrýguez-Artalejo, editors, Algebraic and Logic Programming,pages 269–286. Springer Verlag, 1994. LNCS 850.Google Scholar
- 4.L. Colussi, E. Marchiori, and M. Marchiori. On termination of constraint logic programs. In U. Montanari and F. Rossi, editors, Principles and Practice of Constraint Programming-CP’95,, pages 431–448. Springer Verlag, 1995. LNCS 976.Google Scholar
- 5.D. De Schreye, K. Verschaetse, and M. Bruynooghe. A framework for analyzing the termination of definite logic programs with respect to call patterns. In I. Sta., editor, Proc. of the Int. Conf. on Fifth Generation Computer Systems., pages 481–488. IOS Press, 1992.Google Scholar
- 6.S. Decorte, D. De Schreye. Termination analysis: some practical properties of the norm and level mapping space. In J. Jafar, editor, Proc. of the 1998 Joint Int.Conf. and Symp. on Logic Programming, pages 235–249. MIT Press, June 1998.Google Scholar
- 9.N. Lindenstrauss and Y. Sagiv. Automatic termination analysis of logic programs.In L. Naish, editor, Proc. of the Fourteenth Int. Conf. on Logic Programming, pages 63–77. MIT Press, July 1997.Google Scholar
- 10.F. Mesnard. Inferring left-terminating classes of queries for constraint logic programs.In M. Maher, editor, Proc. JICSLP’96, pages 7–21. The MIT Press, 1996.Google Scholar
- 11.C. Pollard and I. A. Sag. Head-driven Phrase Structure Grammar. The University of Chicago Press, 1994.Google Scholar
- 12.S. Ruggieri. Verification and validation of logic programs. PhD thesis, Universitá di Pisa, 1999.Google Scholar
- 13.A. Serebrenik and D. De Schreye. Inference of termination conditions for numerical loops. Technical Report CW 308, Departement Computerwetenschappen,K.U.Leuven, Leuven, Belgium, 2001.Google Scholar
- 14.A. Serebrenik and D. De Schreye. Non-transformational termination analysis of logic programs, based on general term-orderings. In K.-K. Lau, editor, Logic BasedProgram Synthesis and Transformation 10th International Workshop, Selected Papers, volume 2042 of Lecture Notes in Computer Science, pages 69–85. Springer Verlag, 2001.Google Scholar
- 15.L. Sterling and E. Shapiro. The Art of Prolog. The MIT Press, 1994.Google Scholar