A General Framework for Automatic Termination Analysis of Logic Programs

被引:0
|
作者
Nachum Dershowitz
Naomi Lindenstrauss
Yehoshua Sagiv
Alexander Serebrenik
机构
[1] School of Computer Science,
[2] Tel-Aviv University,undefined
[3] Tel-Aviv 69978,undefined
[4] Israel (e-mail: nachum@cs.tau.ac.il),undefined
[5] Institute for Computer Science,undefined
[6] The Hebrew University,undefined
[7] Jerusalem 91904,undefined
[8] Israel (e-mail: {naomil,undefined
[9] sagiv}@cs.huji.ac.il),undefined
[10] Department of Computer Science,undefined
[11] K.U. Leuven,undefined
[12] Celestijnenlaan 200A,undefined
[13] 3001 Heverlee,undefined
[14] Belgium (e-mail: Alexander.Serebrenik@cs.kuleuven.ac.be),undefined
关键词
Keywords: Termination of logic programs, Abstract interpretation, Constraints.;
D O I
暂无
中图分类号
学科分类号
摘要
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.
引用
收藏
页码:117 / 156
页数:39
相关论文
共 50 条
  • [1] A general framework for automatic termination analysis of logic programs
    Dershowitz, N
    Lindenstrauss, N
    Sagiv, Y
    Serebrenik, A
    [J]. APPLICABLE ALGEBRA IN ENGINEERING COMMUNICATION AND COMPUTING, 2001, 12 (1-2) : 117 - 156
  • [2] Automatic termination analysis of logic programs
    Lindenstrauss, N
    Sagiv, Y
    [J]. LOGIC PROGRAMMING: PROCEEDINGS OF THE FOURTEENTH INTERNATIONAL CONFERENCE ON LOGIC PROGRAMMING, 1997, : 63 - 77
  • [3] Termination analysis for abductive general logic programs
    Verbaeten, S
    [J]. LOGIC PROGRAMMING: PROCEEDINGS OF THE 1999 INTERNATIONAL CONFERENCE ON LOGIC PROGRAMMING, 1999, : 365 - 379
  • [4] Termination prediction for general logic programs
    Shen, Yi-Dong
    De Schreye, Danny
    Voets, Dean
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2009, 9 : 751 - 780
  • [5] Termination analysis of logic programs
    Serebrenik, A
    [J]. LOGIC PROGRAMMING, PROCEEDINGS, 2003, 2916 : 507 - 508
  • [6] The Dependency Triple Framework for Termination of Logic Programs
    Schneider-Kamp, Peter
    Giesl, Juergen
    Nguyen, Manh Thang
    [J]. LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2010, 6037 : 37 - +
  • [7] On modular termination proofs of general logic programs
    Bossi, Annalisa
    Cocco, Nicoletta
    Rossi, Sabina
    Etalle, Sandro
    [J]. Theory and Practice of Logic Programming, 2002, 2 (03) : 263 - 291
  • [8] On modular termination proofs of general logic programs
    Bossi, A
    Cocco, N
    Rossi, S
    Etalle, S
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2002, 2 : 263 - 291
  • [9] SVMRanker: A General Termination Analysis Framework of Loop Programs via SVM
    Li, Xie
    Li, Yi
    Li, Yong
    Sun, Xuechao
    Turrini, Andrea
    Zhang, Lijun
    [J]. PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20), 2020, : 1635 - 1639
  • [10] On termination of general logic programs WRT constructive negation
    Marchiori, E
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1996, 26 (01): : 69 - 89