Guard and Continuation Optimization for Occurrence Representations of CHR
Guard and Continuation Optimization for Occurrence Representations of CHR
复制标题
CHR 出现表示的保护和延拓优化
DOI:
--
复制
发表时间:
2005
期刊:
影响因子:
--
通讯作者:
Bart Demoen
中科院分区:
文献类型:
--
作者:
Jon Sneyers;Tom Schrijvers;Bart Demoen
Constraint Handling Rules (CHR) is a high-level rule-based language extension, commonly embedded in Prolog. We introduce a new occurrence representation of CHR programs, and a new operational semantics for occurrence representations, equivalent to the widely implemented refined operational semantics. The occurrence representation allows in a natural way to express guard and continuation optimizations, which remove redundant guards and eliminate redundant code for subsumed occurrences. These optimizations allow CHR programmers to write self-documented rules with a clear logical reading. We show correctness of both optimizations, present an implementation in the K.U.Leuven CHR compiler, and discuss speedup measurements.