Global analysis of constraint logic programs

被引:27
|
作者
DeLaBanda, MG [1 ]
Hermenegildo, M [1 ]
Bruynooghe, M [1 ]
Dumortier, V [1 ]
Janssens, G [1 ]
Simoens, W [1 ]
机构
[1] KATHOLIEKE UNIV LEUVEN,DEPT COMP SCI,B-3001 HEVERLEE,BELGIUM
关键词
languages; abstract interpretation; constraint logic programming; global program analysis; program analysis;
D O I
10.1145/232706.232734
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This article presents and illustrates a practical approach to the dataflow analysis of constraint logic programming languages using abstract interpretation. It is first argued that, from the framework point of view, it suffices to propose relatively simple extensions of traditional analysis methods which have already been proved useful and practical and for which efficient fixpoint algorithms exist. This is shown by proposing a simple extension of Bruynooghe's traditional framework which allows it to analyze constraint logic programs. Then, and using this generalized framework, two abstract domains and their required abstract functions are presented: the first abstract domain approximates definiteness information and the second one freeness. Finally, an approach for combining those domains is proposed. The two domains and their combination have been implemented and used in the analysis of CLP(R) and Prolog-III applications. Results from this implementation showing its performance and accuracy are also presented.
引用
收藏
页码:564 / 614
页数:51
相关论文
共 50 条
  • [1] Incremental analysis of constraint logic programs
    Hermenegildo, M
    Puebla, G
    Marriott, K
    Stuckey, PJ
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2000, 22 (02): : 187 - 223
  • [2] A backward analysis for constraint logic programs
    King, A
    Lu, LJ
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2002, 2 (4-5) : 517 - 547
  • [3] Analysis of imperative programs through analysis of constraint logic programs
    Peralta, JC
    Gallagher, JP
    Saglam, H
    [J]. STATIC ANALYSIS, 1998, 1503 : 246 - 261
  • [4] TRANSFORMING NORMAL LOGIC PROGRAMS TO CONSTRAINT LOGIC PROGRAMS
    KANCHANASUT, K
    STUCKEY, PJ
    [J]. THEORETICAL COMPUTER SCIENCE, 1992, 105 (01) : 27 - 56
  • [5] Constraint-based termination analysis of logic programs
    Decorte, S
    De Schreye, D
    Vandecasteele, H
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1999, 21 (06): : 1137 - 1195
  • [6] The semantics of constraint logic programs
    Jaffar, J
    Maher, M
    Marriott, K
    Stuckey, P
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1998, 37 (1-3): : 1 - 46
  • [7] Transforming constraint logic programs
    Bensaou, N
    Guessarian, I
    [J]. THEORETICAL COMPUTER SCIENCE, 1998, 206 (1-2) : 81 - 125
  • [8] Typing constraint logic programs
    Fages, F
    Coquery, E
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2001, 1 : 751 - 777
  • [9] Termination of constraint logic programs
    Ruggieri, S
    [J]. AUTOMATA, LANGUAGES AND PROGRAMMING, 1997, 1256 : 838 - 848
  • [10] Set-based failure analysis for logic programs and concurrent constraint programs
    Podelski, A
    Charatonik, W
    Müller, M
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, 1999, 1576 : 177 - 192