Download PDF

International Symposium on Logic-Based Program Synthesis and Transformation, Date: 2007/08/23 - 2007/08/24, Location: Kongens Lyngby, Denmark

Publication date: 2008-05-04
Volume: 4915 Pages: 59 - 73
ISBN: 3540787682, 978-3-540-78768-6 ISSN: 0302-9743
Publisher: Springer

Lecture notes in computer science

Author:

Van Weert, Peter
Sneyers, Jon ; Demoen, Bart ; King, A

Keywords:

aggregates, Constraint Handling Rules, transformation, Science & Technology, Technology, Computer Science, Software Engineering, Computer Science, Theory & Methods, Computer Science, CONSTRAINT HANDLING RULES

Abstract:

We propose an extension of Constraint Handling Rules (CHR) with aggregates such as sum, count, findall, and min. This new feature significantly improves the conciseness and expressiveness of the language. In this paper, we describe an implementation based on source-to-source transformations to CHR (extended with some low-level compiler directives). We allow user-defined aggregates and nested aggregate expressions over arbitrary guarded conjunctions of constraints. Both an on-demand and an incremental aggregate computation strategy are supported.