Transformational methodology for proving termination of logic programs

被引:0
|
作者
Rao, MRKK [1 ]
Kapur, D [1 ]
Shyamasundar, RK [1 ]
机构
[1] Tata Inst Fundamental Res, Comp Sci Grp, Bombay 400005, Maharashtra, India
来源
JOURNAL OF LOGIC PROGRAMMING | 1998年 / 34卷 / 01期
基金
美国国家科学基金会;
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A methodology for proving the termination of well-moded logic programs is developed by reducing the termination problem of logic programs to that of term rewriting systems. A transformation procedure is presented to derive a term rewriting system from a given well-moded logic program such that the termination of the derived rewrite system implies the termination of the logic program for all well-moded queries under a class of selection rules. This facilitates applicability of a vast source of termination orderings proposed in the literature on term rewriting, for proving termination of logic programs. The termination of various benchmark programs has been established with this approach. Unlike other mechanizable approaches, the proposed approach does not require any preprocessing and works well, even in the presence of mutual recursion. The transformation has also been implemented as a front end to Rewrite Rule Laboratory (RRL) and has been used in establishing termination of nontrivial Prolog programs such as a prototype compiler for ProCoS, PL0 language. (C) Elsevier Science Inc., 1998.
引用
收藏
页码:1 / 41
页数:41
相关论文
共 50 条
  • [31] Proving Termination and Memory Safety for Programs with Pointer Arithmetic
    Stroeder, Thomas
    Giesl, Juergen
    Brockschmidt, Marc
    Frohn, Florian
    Fuhs, Carsten
    Hensel, Jera
    Schneider-Kamp, Peter
    AUTOMATED REASONING, IJCAR 2014, 2014, 8562 : 208 - 223
  • [32] Proving Termination of Programs with Bitvector Arithmetic by Symbolic Execution
    Hensel, Jera
    Giesl, Juergen
    Frohn, Florian
    Stroeder, Thomas
    SOFTWARE ENGINEERING AND FORMAL METHODS: 14TH INTERNATIONAL CONFERENCE, SEFM 2016, 2016, 9763 : 234 - 252
  • [33] PROVING PROPERTIES OF COMMITTED CHOICE LOGIC PROGRAMS
    NAISH, L
    JOURNAL OF LOGIC PROGRAMMING, 1989, 7 (01): : 63 - 84
  • [34] Termination of logic programs with delay declarations
    Marchiori, Elena
    Teusink, Frank
    Journal of Logic Programming, 39 (01): : 95 - 124
  • [35] Automatic termination analysis of logic programs
    Lindenstrauss, N
    Sagiv, Y
    LOGIC PROGRAMMING: PROCEEDINGS OF THE FOURTEENTH INTERNATIONAL CONFERENCE ON LOGIC PROGRAMMING, 1997, : 63 - 77
  • [36] Termination of logic programs with delay declarations
    Marchiori, E
    Teusink, F
    JOURNAL OF LOGIC PROGRAMMING, 1999, 39 (1-3): : 95 - 124
  • [37] Input-termination of logic programs
    Rao, MRKK
    LOGIC BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2005, 3573 : 215 - 230
  • [38] Termination prediction for general logic programs
    Shen, Yi-Dong
    De Schreye, Danny
    Voets, Dean
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2009, 9 : 751 - 780
  • [39] TOWARDS A CHARACTERIZATION OF TERMINATION OF LOGIC PROGRAMS
    WANG, B
    SHYAMASUNDAR, RK
    LECTURE NOTES IN COMPUTER SCIENCE, 1990, 456 : 204 - 221
  • [40] NORMS ON TERMS AND THEIR USE IN PROVING UNIVERSAL TERMINATION OF A LOGIC PROGRAM
    BOSSI, A
    COCCO, N
    FABRIS, M
    THEORETICAL COMPUTER SCIENCE, 1994, 124 (02) : 297 - 328