arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1307.0679cs.PL
收藏

CHR程序的展开

Unfolding for CHR programs

Maurizio Gabbrielli, Maria Chiara Meo, Paolo Tacchella, Herbert Wiklicky

摘要:

程序转换是一种有吸引力的技术,它可以提高运行时的效率,空间消耗,更一般地优化给定的程序。从本质上讲,它由一系列的语法程序操作,保持某种语义等价。展开是大多数程序转换系统所使用的基本操作之一,它包括用过程调用的定义替换过程调用。虽然有大量的文献转换和展开的顺序程序,很少有论文已经解决了这个问题的并发语言。本文定义了一个面向可编程逻辑程序的展开系统。我们定义了一个展开规则,证明了它的正确性,并讨论了一些条件,可以用来删除一个展开规则,同时保持程序的意义。我们还证明了,在适当的条件下,合流和终止保持上述转换。逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)

英文摘要:

Program transformation is an appealing technique which allows to improve run-time efficiency, space-consumption, and more generally to optimize a given program. Essentially, it consists of a sequence of syntactic program manipulations which preserves some kind of semantic equivalence. Unfolding is one of the basic operations which is used by most program transformation systems and which consists in the replacement of a procedure call by its definition. While there is a large body of literature on transformation and unfolding of sequential programs, very few papers have addressed this issue for concurrent languages. This paper defines an unfolding system for CHR programs. We define an unfolding rule, show its correctness and discuss some conditions which can be used to delete an unfolded rule while preserving the program meaning. We also prove that, under some suitable conditions, confluence and termination are preserved by the above transformation. To appear in Theory and Practice of Logic Programming (TPLP)

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑