Analyzing logic programs using ''prop''-ositional logic programs and a magic wand

被引:25
作者
Codish, M [1 ]
Demoen, B [1 ]
机构
[1] KATHOLIEKE UNIV LEUVEN, DEPT COMP SCI, B-3001 LOUVAIN, BELGIUM
来源
JOURNAL OF LOGIC PROGRAMMING | 1995年 / 25卷 / 03期
关键词
D O I
10.1016/0743-1066(95)00064-X
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This paper illustrates the role of a class of ''prop''-ositional logic programs in the analysis of complex properties of logic programs. Analyses are performed by abstracting Prolog programs to corresponding ''prop''-ositional logic programs which approximate the original programs and have finite meanings. We focus on a groundness analysis which is equivalent to that obtained by abstract interpretation using the domain Prop. The main contribution is in the ease in which a highly efficient implementation of the analysis is obtained. The implementation is bottom-up and provides approximations of a program's success patter-os. Goal-dependent information such as call patterns is obtained using a magic-set transformation. A novel compositional approach is applied so that call patterns for arbitrary goals are derived in a precise and efficient way.
引用
收藏
页码:249 / 274
页数:26
相关论文
共 35 条
[1]  
[Anonymous], 1988, FDN DEDUCTIVE DATABA
[2]   A GENERAL FRAMEWORK FOR SEMANTICS-BASED BOTTOM-UP ABSTRACT INTERPRETATION OF LOGIC PROGRAMS [J].
BARBUTI, R ;
GIACOBAZZI, R ;
LEVI, G .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1993, 15 (01) :133-181
[3]   A COMPOSITIONAL SEMANTICS FOR LOGIC PROGRAMS [J].
BOSSI, A ;
GABBRIELLI, M ;
LEVI, G ;
MEO, MC .
THEORETICAL COMPUTER SCIENCE, 1994, 122 (1-2) :3-47
[4]  
BOSSI A, 1992, FIFTH GENERATION COMPUTER SYSTEMS 1992, VOLS 1 AND 2, P570
[5]  
BRUYNOOGHE M, 1986, IFIP TC2 WG 21 WORKI, P113
[6]   BOTTOM-UP ABSTRACT INTERPRETATION OF LOGIC PROGRAMS [J].
CODISH, M ;
DAMS, D ;
YARDENI, E .
THEORETICAL COMPUTER SCIENCE, 1994, 124 (01) :93-125
[7]   SUSPENSION ANALYSES FOR CONCURRENT LOGIC PROGRAMS [J].
CODISH, M ;
FALASLCHI, M ;
MARRIOTT, K .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1994, 16 (03) :649-686
[8]  
CODISH M, 1993, MIT PS LOG, P114
[9]  
CODISH M, 1993, 20TH P ANN ACM S PRI, P451
[10]  
CODISH M, 1991, 8TH P INT C LOG PROG, P331