A first-order one-pass CPS transformation
β Scribed by Olivier Danvy; Lasse R. Nielsen
- Publisher
- Elsevier Science
- Year
- 2003
- Tongue
- English
- Weight
- 497 KB
- Volume
- 308
- Category
- Article
- ISSN
- 0304-3975
No coin nor oath required. For personal study only.
β¦ Synopsis
We present a new transformation of -terms into continuation-passing style (CPS). This transformation operates in one pass and is both compositional and ΓΏrst-order. Previous CPS transformations only enjoyed two out of the three properties of being ΓΏrst-order, one-pass, and compositional, but the new transformation enjoys all three properties. It is proved correct directly by structural induction over source terms instead of indirectly with a colon translation, as in Plotkin's original proof. Similarly, it makes it possible to reason about CPS-transformed terms by structural induction over source terms, directly.
The new CPS transformation connects separately published approaches to the CPS transformation. It has already been used to state a new and simpler correctness proof of a direct-style transformation, and to develop a new and simpler CPS transformation of control-ow information.
π SIMILAR VOLUMES
We study the high energy behaviour of fermions hitting a general wall caused by a first-order phase transition. The wall profile is introduced through general analytic and nonanalytic functions. The reflection coefficient is computed in the high energy limit and its connection with the analytic prop
## Abstract We consider a firstβorder hyperbolic initialβboundary value problem that models coagulation of particles. We establish a comparison principle and construct monotone sequences to show the existence and uniqueness of the solution. Copyright Β© 2003 John Wiley & Sons, Ltd.