4 PROGRAM TRANSFORMATIONS

Designing and applying program transformations also fall into the abstraction/instantiation paradigm. The same methodology can be used for this purpose as was used in the previous section for designing and applying program schemata. For example, to design a recursion-elimination transformation (such as in [8, 20, 22, 68]), we could first write, and verify, iterative versions of several recursive programs; then, by abstracting those programs, and their proofs, a general recursion-to-iteration transformation schema may be obtained. As we shall see, very little information is gleaned just by a comparison of output specifications; instead, most of the analogy needs to be derived from the programs themselves.

Consider ...

Get Readings in Artificial Intelligence and Software Engineering now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.