An Automatic Partial Deduction System for Constraint Logic Programs

Y Tao,WI Grosky,CN Liu
DOI: https://doi.org/10.1109/tai.1997.632249
1997-01-01
Abstract:This paper presents a new procedure of partial deduction of various constraint logic programs. The procedure takes a program-goal pair (P-0, Q(0)) as input and outputs a resultant program-goal pair (P-n, Q(n)). The procedure always terminates and the computational equivalence of the program-goal pairs (P-0, Q(0)) and (P-n, Q(n),) is preserved. P-n is more efficient in solving Q(n) than P-0 in solving Q(0). Our procedure is based on the idea of program transformation, using transformation rules such as unfolding, constraint simplification, code deletion with respect to a goal, introduction of a newly defined clause, and folding. We have implemented the procedure in an integrated partial deduction system, which can work with Prolog, CLP(Bool), and CLP(R) programs. Our results are compared with those resulting from other partial deduction methods, and it is shown that our method generates more succinct and efficient resultant programs in general.
What problem does this paper attempt to address?