arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0601039cs.PL
收藏

自动删除冗余参数

Removing Redundant Arguments Automatically

Maria Alpuente, Santiago Escobar, Salvador Lucas

摘要:

在程序的正式开发和优化过程中应用自动转换过程可能会在生成的代码中引入程序员通常(或可能)不会编写的分支。一个例子是在程序中定义的函数中引入冗余参数。参数的冗余意味着用任何表达式替换它都不会改变结果。在这项工作中,我们提供的方法来分析和消除冗余参数的长期重写系统作为一个模型的程序,可以写在更复杂的语言。在无用的冗余参数的基础上,我们还提出了一个擦除过程,可以避免浪费的计算,同时仍然保留语义(在确定的条件下)。这些方法的原型实现已经进行,这表明了我们的方法的实用性。

英文摘要:

The application of automatic transformation processes during the formal development and optimization of programs can introduce encumbrances in the generated code that programmers usually (or presumably) do not write. An example is the introduction of redundant arguments in the functions defined in the program. Redundancy of a parameter means that replacing it by any expression does not change the result. In this work, we provide methods for the analysis and elimination of redundant arguments in term rewriting systems as a model for the programs that can be written in more sophisticated languages. On the basis of the uselessness of redundant arguments, we also propose an erasure procedure which may avoid wasteful computations while still preserving the semantics (under ascertained conditions). A prototype implementation of these methods has been undertaken, which demonstrates the practicality of our approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑