Inferring termination conditions for logic programs using backwards analysis

被引:9
|
作者
Genaim, S [1 ]
Codish, M
机构
[1] Univ Verona, Dipartimento Informat, Verona, Italy
[2] Ben Gurion Univ Negev, Dept Comp Sci, IL-84105 Beer Sheva, Israel
关键词
program analysis; abstract interpretation; termination analysis; backwards analysis;
D O I
10.1017/S1471068404002236
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper focuses on the inference of modes for which a logic program is guaranteed to terminate. This generalises traditional termination analysis where an analyser tries to verify termination for a specified mode. Our contribution is a methodology in which components of traditional termination analysis are combined with backwards analysis to obtain an analyser for termination inference. We identify a condition on the components of the analyser which guarantees that termination inference will infer all modes which can be checked to terminate. The application of this methodology to enhance a traditional termination analyser to perform also termination inference is demonstrated.
引用
收藏
页码:75 / 91
页数:17
相关论文
共 50 条
  • [1] Applying static analysis techniques for inferring termination conditions of logic programs
    Mesnard, F
    Neumerkel, U
    [J]. STATIC ANALYSIS, PROCEEDINGS, 2001, 2126 : 93 - 110
  • [2] Inferring and compiling termination for constraint logic programs
    Hoarau, S
    Mesnard, F
    [J]. LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 1999, 1559 : 240 - 254
  • [3] Termination analysis of logic programs
    Serebrenik, A
    [J]. LOGIC PROGRAMMING, PROCEEDINGS, 2003, 2916 : 507 - 508
  • [4] A program transformation for backwards analysis of logic programs
    Gallagher, JP
    [J]. LOGIC BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2003, 3018 : 92 - 105
  • [5] A program transformation for backwards analysis of logic programs
    Gallagher, John P.
    [J]. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2004, 3018 : 92 - 105
  • [6] Detecting optimal termination conditions of logic programs
    Mesnard, F
    Payet, E
    Neumerkel, U
    [J]. STATIC ANALYSIS, PROCEEDINGS, 2002, 2477 : 509 - 525
  • [7] 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
  • [8] Non-termination Analysis of Logic Programs Using Types
    Voets, Dean
    De Schreye, Danny
    [J]. LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2011, 6564 : 133 - 148
  • [9] Termination analysis of tabled logic programs using mode and type information
    Verbaeten, S
    De Schreye, D
    [J]. FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 1999, 1722 : 163 - 178
  • [10] Termination analysis for abductive general logic programs
    Verbaeten, S
    [J]. LOGIC PROGRAMMING: PROCEEDINGS OF THE 1999 INTERNATIONAL CONFERENCE ON LOGIC PROGRAMMING, 1999, : 365 - 379