(define-library (csc cps) (import (only (csc ir1) make-constant constant? lexical-ref? library-ref?) (only (csc ir2) (make-atom)) (scheme base)) (begin (define (to-cps expr k) (cond ((or (constant? expr) (lexical-ref? expr) (library-ref? expr)) (make-atom expr continuation)) (else (error "unexpected type in to-cps" expr)))) (define (ir1->ir2 program)