首页 | 本学科首页   官方微博 | 高级检索  
     


A General Framework for Automatic Termination Analysis of Logic Programs
Authors:Nachum Dershowitz  Naomi Lindenstrauss  Yehoshua Sagiv  Alexander Serebrenik
Affiliation:(1) School of Computer Science, Tel-Aviv University, Tel-Aviv 69978, Israel (e-mail: nachum@cs.tau.ac.il), IL;(2) Institute for Computer Science, The Hebrew University, Jerusalem 91904, Israel (e-mail: {naomil,sagiv}@cs.huji.ac.il), IL;(3) Department of Computer Science, K.U. Leuven, Celestijnenlaan 200A, 3001 Heverlee, Belgium (e-mail: Alexander.Serebrenik@cs.kuleuven.ac.be), BE
Abstract:This paper describes a general framework for automatic termination analysis of logic programs, where we understand by “termination” the finiteness of the LD-tree constructed for the program and a given query. A general property of mappings from a certain subset of the branches of an infinite LD-tree into a finite set is proved. From this result several termination theorems are derived, by using different finite sets. The first two are formulated for the predicate dependency and atom dependency graphs. Then a general result for the case of the query-mapping pairs relevant to a program is proved (cf. [29, 21]). The correctness of the TermiLog system described in [22] follows from it. In this system it is not possible to prove termination for programs involving arithmetic predicates, since the usual order for the integers is not well-founded. A new method, which can be easily incorporated in TermiLog or similar systems, is presented, which makes it possible to prove termination for programs involving arithmetic predicates. It is based on combining a finite abstraction of the integers with the technique of the query-mapping pairs, and is essentially capable of dividing a termination proof into several cases, such that a simple termination function suffices for each case. Finally several possible extensions are outlined. Received: August 30, 1999
Keywords:: Termination of logic programs   Abstract interpretation   Constraints.
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号