摘要
约束逻辑程序(CLP)的部分演绎是一个新兴的研究领域.本文提出一个新的基于程序变换的CLP部分演绎的过程.该过程以程序一目标对(PO,Q0)为输入,经过一系列程序变换后终止,输出结果程序一目标对(Pn,Qn).该过程保证结果程序-目标对(Pn,Qn)和输入程序-目标对(PO,Q0)计算等价,并且程序Pn解目标Qn比程序P0解目标Q0效率更高.本文提出的方法已经实现,文中给出了一个CLP(BOOL)程序部分演绎的运行实例.
Partial deduction of constraint logic programs is a newly emerging research field. This paper presents a new procedure of partial deduction of various constraint logic programming languages. The procedure inputs a program-goal pair (P0, Q0) and outputs the resultant program-goal pair (Pn, Qn). The procedure always terminates and the computational equivalence of the program-goal pairs (P0,Q0) and (Pn, Qn) is preserved. Pn is more efficient in solving Qn than P0 in solving Q0. A partial evaluator based on the procedure had been implemented, and a running example of partial deduction of a CLP(BOOL) program is given.
出处
《计算机学报》
EI
CSCD
北大核心
1997年第3期238-244,共7页
Chinese Journal of Computers
基金
国家自然科学基金
国家863计划基金
关键词
约束逻辑程序
部分演绎
程序设计
Constraint logic programming
partial deduction (partial evaluation).