We address the problem of specializing a constraint logic program w.r.t. a constrained atom which specifies the context of use of the program. We follow an approach based on transformation rules and strategies. We introduce a novel transformation rule, called contextual constraint replacement, to be combined with variants of the traditional unfolding and folding rules. We present a general Partial Evaluation Strategy for automating the application of these rules, and two additional strategies: the Context Propagation Strategy which is instrumental for the application of our contextual constraint replacement rule, and the Invariant Promotion Strategy for taking advantage of invariance properties of the computation. We show through some examples the power of our method and we compare it with existing methods for partial deduction of constraint logic programs based on extensions of Lloyd and Shepherdson's approach.

Fioravanti, F., Pettorossi, A., Proietti, M. (2000). Rules and strategies for contextual specialization of constraint logic programs. In Electronic notes in theoretical computer science (pp.129-144) [10.1016/S1571-0661(05)80634-6].

Rules and strategies for contextual specialization of constraint logic programs

PETTOROSSI, ALBERTO;
2000-01-01

Abstract

We address the problem of specializing a constraint logic program w.r.t. a constrained atom which specifies the context of use of the program. We follow an approach based on transformation rules and strategies. We introduce a novel transformation rule, called contextual constraint replacement, to be combined with variants of the traditional unfolding and folding rules. We present a general Partial Evaluation Strategy for automating the application of these rules, and two additional strategies: the Context Propagation Strategy which is instrumental for the application of our contextual constraint replacement rule, and the Invariant Promotion Strategy for taking advantage of invariance properties of the computation. We show through some examples the power of our method and we compare it with existing methods for partial deduction of constraint logic programs based on extensions of Lloyd and Shepherdson's approach.
WOID'99: Workshop on optimization and implementation of declarative programs (in Connetion with ICLP'99, International Conference on Logic)
Las Cruces
1999
Rilevanza internazionale
2000
Settore ING-INF/05 - SISTEMI DI ELABORAZIONE DELLE INFORMAZIONI
English
computation theory; constraint theory; context free languages; evaluation; constraint logic programs; context propagation strategy; folding rules; program transformation techniques; logic programming
Intervento a convegno
Fioravanti, F., Pettorossi, A., Proietti, M. (2000). Rules and strategies for contextual specialization of constraint logic programs. In Electronic notes in theoretical computer science (pp.129-144) [10.1016/S1571-0661(05)80634-6].
Fioravanti, F; Pettorossi, A; Proietti, M
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2108/49550
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact