Download PDF

Workshop on Constraint Handling Rules, Date: 2005/10/05 - 2005/10/05, Location: Sitges, Spain

Publication date: 2005-01-01
Pages: 109 - 124

Proceedings of the 2nd Workshop on Constraint Handling Rules

Author:

Duck, Gregory
Schrijvers, Tom ; Schrijvers, Tom ; Frühwirth, T

Keywords:

Constraint Handling Rules, abstract interpretation, functional dependencies

Abstract:

Information about functional dependencies is used by modern CHR compilers for both optimisation and for further program analysis (e.g. confluence analysis). Before this work, CHR compilers relied on an ad hoc analysis for functional dependencies based on searching for rules of a particular form and the results from late storage analysis. We present a more formal functional dependency analysis of CHRs based on abstract interpretation. We show, by example, that the new analysis is more accurate than the existing ad hoc analysis.