计算机科学 > 程序设计语言
[提交于 2009年11月20日]
标题:Efficient Local Unfolding with Ancestor Stacks
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The most successful unfolding rules used nowadays in the partial evaluation of logic programs are based on well quasi orders (wqo) applied over (covering) ancestors, i.e., a subsequence of the atoms selected during a derivation. Ancestor (sub)sequences are used to increase the specialization power of unfolding while still guaranteeing termination and also to reduce the number of atoms for which the wqo has to be checked. Unfortunately, maintaining the structure of the ancestor relation during unfolding introduces significant overhead. We propose an efficient, practical local unfolding rule based on the notion of covering ancestors which can be used in combination with a wqo and allows a stack-based implementation without losing any opportunities for specialization. Using our technique, certain non-leftmost unfoldings are allowed as long as local unfolding is performed, i.e., we cover depth-first strategies.
提交历史
来自:Elvira Albert[v1] 2009年11月20日 星期五 13:44:59 UTC