Non-termination analysis of logic programs with integer arithmetics

被引:7
|
作者
Voets, Dean [1 ]
De Schreye, Danny [1 ]
机构
[1] Katholieke Univ Leuven, Dept Comp Sci, B-3001 Heverlee, Belgium
关键词
non-termination analysis; numerical computation; constraint-based approach;
D O I
10.1017/S1471068411000159
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In the past years, analyzers have been introduced to detect classes of non-terminating queries for definite logic programs. Although these non-termination analyzers have shown to be rather precise, their applicability on real-life Prolog programs is limited because most Prolog programs use non-logical features. As a first step towards the analysis of Prolog programs, this paper presents a non-termination condition for Logic Programs containing integer arithmetics. The analyzer is based on our non-termination analyzer presented at International Logic Programming Conference (ICLP) 2009. The analysis starts from a class of queries and infers a subclass of non-terminating ones. In first phase, we ignore the outcome (success or failure) of the arithmetic operations, assuming success of all arithmetic calls. In second phase, we characterize successful arithmetic calls as a constraint problem, the solution of which determines the non-terminating queries.
引用
收藏
页码:521 / 536
页数:16
相关论文
共 50 条
  • [41] A General Framework for Automatic Termination Analysis of Logic Programs
    Nachum Dershowitz
    Naomi Lindenstrauss
    Yehoshua Sagiv
    Alexander Serebrenik
    Applicable Algebra in Engineering, Communication and Computing, 2001, 12 : 117 - 156
  • [42] Termination analysis of logic programs based on dependency graphs
    Nguyen, Manh Thang
    Giesl, Juergen
    Schneider-Kamp, Peter
    De Schreye, Danny
    LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2008, 4915 : 8 - +
  • [43] Polynomial interpretations as a basis for termination analysis of logic programs
    Nguyen, MT
    De Schreye, D
    LOGIC PROGRAMMING, PROCEEDINGS, 2005, 3668 : 311 - 325
  • [44] Reuse of results in termination analysis of typed logic programs
    Bruynooghe, M
    Codish, M
    Genaim, S
    Vanhoof, W
    STATIC ANALYSIS, PROCEEDINGS, 2002, 2477 : 477 - 492
  • [45] Constraint-based termination analysis of logic programs
    Decorte, S
    De Schreye, D
    Vandecasteele, H
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1999, 21 (06): : 1137 - 1195
  • [46] A general framework for automatic termination analysis of logic programs
    Dershowitz, N
    Lindenstrauss, N
    Sagiv, Y
    Serebrenik, A
    APPLICABLE ALGEBRA IN ENGINEERING COMMUNICATION AND COMPUTING, 2001, 12 (1-2) : 117 - 156
  • [47] ∃-Universal termination of logic programs
    Ruggieri, S
    THEORETICAL COMPUTER SCIENCE, 2001, 254 (1-2) : 273 - 296
  • [48] TUTORIAL ON TERMINATION OF LOGIC PROGRAMS
    DESCHREYE, D
    VERSCHAETSE, K
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 649 : 70 - 88
  • [49] Termination of constraint logic programs
    Ruggieri, S
    AUTOMATA, LANGUAGES AND PROGRAMMING, 1997, 1256 : 838 - 848
  • [50] STRONG TERMINATION OF LOGIC PROGRAMS
    BEZEM, M
    JOURNAL OF LOGIC PROGRAMMING, 1993, 15 (1-2): : 79 - 97