Download PDF

19th Workshop on (Constraint) Logic Programming, Date: 2005/02/21 - 2005/02/23, Location: Ulm, Germany

Publication date: 2005-01-01
Volume: 2005-01 Pages: 123 - 134
Publisher: Universität Ulm, Germany

19th Workshop on (Constraint) Logic Programming

Author:

Sneyers, Jon
Schrijvers, Tom ; Demoen, Bart ; Wolf, A ; Frühwirth, T ; Meister, M

Abstract:

Constraint Handling Rules (CHR) is a high-level language commonly used to write constraint solvers. Most CHR programs depend on the refined operational semantics, obfuscating their logical reading and causing different (termination) behavior under the theoretical operational semantics. We introduce a source to source transformation called guard simplification which allows CHR programmers to write self-documented rules with a clear logical reading. Performance is improved by removing guards entailed by the implicit "no earlier (sub)rule fired" precondition and optional type and mode declarations. A formal description of the transformation is given, its implementation in the K.U.Leuven CHR compiler is presented and experimental results are discussed.