Temporary test file

This commit is contained in:
Justin Ethier 2017-05-02 18:55:01 -04:00
parent 94fac5c512
commit 2662a15622

11
array1-test.scm Normal file
View file

@ -0,0 +1,11 @@
;;; ARRAY1 -- One of the Kernighan and Van Wyk benchmarks.
(import (scheme base) (scheme read) (scheme write) (scheme time))
(define (create-x n)
(define result (make-vector n))
(do ((i 0 (+ i 1)))
((>= i n) result) ;; TODO: check generated code, can this >= be inlined???
(vector-set! result i i)))
(write (create-x 10))