1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
; Description: continuation-passing version of TAK
7
; Status: Public Domain
8
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
10
;;; CPSTAK -- A continuation-passing version of the TAK benchmark.
11
;;; A good test of first class procedures and tail recursion.
13
(define (cpstak x y z)
29
(tak v1 v2 v3 k)))))))))
30
(tak x y z (lambda (a) a)))
34
;;; (run-benchmark "CPSTAK" (lambda () (cpstak 18 12 6)))