Deforestation, program transformation, and cut-elimination