计算机科学 > 程序设计语言
[提交于 2016年8月11日]
标题:Partial Evaluation of Order-sorted Equational Programs modulo Axioms
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Partial evaluation (PE) is a powerful and general program optimization technique with many successful applications. However, it has never been investigated in the context of expressive rule-based languages like Maude, CafeOBJ, OBJ, ASF+SDF, and ELAN, which support: 1) rich type structures with sorts, subsorts and overloading; 2) equational rewriting modulo axioms such as commutativity, associativity-commutativity, and associativity-commutativity-identity. In this extended abstract, we illustrate the key concepts by showing how they apply to partial evaluation of expressive rule-based programs written in Maude. Our partial evaluation scheme is based on an automatic unfolding algorithm that computes term variants and relies on equational least general generalization for ensuring global termination. We demonstrate the use of the resulting partial evaluator for program optimization on several examples where it shows significant speed-ups.
提交历史
来自:Santiago Escobar[v1] 2016年8月11日 星期四 11:51:04 UTC