English

A Linear First-Order Functional Intermediate Language for Verified Compilers

Programming Languages 2015-06-05 v2

Abstract

We present the linear first-order intermediate language IL for verified compilers. IL is a functional language with calls to a nondeterministic environment. We give IL terms a second, imperative semantic interpretation and obtain a register transfer language. For the imperative interpretation we establish a notion of live variables. Based on live variables, we formulate a decidable property called coherence ensuring that the functional and the imperative interpretation of a term coincide. We formulate a register assignment algorithm for IL and prove its correctness. The algorithm translates a functional IL program into an equivalent imperative IL program. Correctness follows from the fact that the algorithm reaches a coherent program after consistently renaming local variables. We prove that the maximal number of live variables in the initial program bounds the number of different variables in the final coherent program. The entire development is formalized in Coq.

Keywords

Cite

@article{arxiv.1503.08665,
  title  = {A Linear First-Order Functional Intermediate Language for Verified Compilers},
  author = {Sigurd Schneider and Gert Smolka and Sebastian Hack},
  journal= {arXiv preprint arXiv:1503.08665},
  year   = {2015}
}

Comments

Addressed comments from reviewers (ITP 2015): (1) Added discussion of a paper in related work (2) Added definition of renamed-apart in appendix (3) Formulation changes in a coupe of places

R2 v1 2026-06-22T09:05:35.987Z