Narrowing data-structures with pointers

被引:0
作者
Echahed, Rachid [1 ]
Peltier, Nicolas [1 ]
机构
[1] CNRS, LEIBNIZ, IMAG, F-38031 Grenoble, France
来源
GRAPH TRANSFORMATIONS, PROCEEDINGS | 2006年 / 4178卷
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We investigate the narrowing relation in a wide class of (cyclic) term-graph rewrite systems. We propose a new sound and complete narrowing-based algorithm able to solve goals in presence of data structures with pointers (e.g., circular lists, doubly linked lists etc.). We first define the class of rewrite systems we consider. Our rules provide features such as pointer (edge) redirections, relabeling of existing nodes, in addition to the creation of new nodes. Moreover, we split the set of nodes of term-graphs in two (possibly empty) subsets: (i) variables and (ii) names. Variable nodes can be mapped against any other node whereas names act as constants and thus they are supposed to match themselves. This distinction between nodes allows us to synthesize, through the narrowing process, data-structures with circular shapes. In a second step, we define the rewriting and narrowing relations. We then show the soundness and completeness of narrowing.
引用
收藏
页码:92 / 106
页数:15
相关论文
共 12 条
[1]   A needed narrowing strategy [J].
Antoy, S ;
Echahed, R ;
Hanus, M .
JOURNAL OF THE ACM, 2000, 47 (04) :776-822
[2]  
ANTOY S, 2006, 3 INT WORKSH TERM GR, P61
[3]  
Bakewell A, 2003, LECT NOTES COMPUT SC, V3062, P30
[4]  
BAKEWELL A, 2003, ELIMICS, P48
[5]  
BARENDREGT HP, 1987, LECT NOTES COMPUT SC, V259, P141
[6]  
CAFERRA R, 2006, P PPDP PRINC PRACT D
[7]  
ECHAHED R, 1998, IJCSLP, P325
[8]  
ECHAHED R, 2000, P JOINT APPLIGRAPH G
[9]  
Habel A., 1996, Mathematical Structures in Computer Science, V6, P649
[10]   THE INTEGRATION OF FUNCTIONS INTO LOGIC PROGRAMMING - FROM THEORY TO PRACTICE [J].
HANUS, M .
JOURNAL OF LOGIC PROGRAMMING, 1994, 20 :583-628