Added a test for unboxed nested loops.
original commit: 4d43c2156562540bcd70cf91a4c712b1546f9f2e
This commit is contained in:
parent
918d50b25d
commit
019ea62c25
|
@ -0,0 +1,15 @@
|
|||
#lang typed/scheme #:optimize
|
||||
|
||||
(require racket/unsafe/ops)
|
||||
|
||||
(let: loop1 : Inexact-Complex
|
||||
((x : (Listof Inexact-Complex) '(1.0+2.0i 2.0+4.0i))
|
||||
(r : Inexact-Complex 0.0+0.0i))
|
||||
(if (null? x)
|
||||
r
|
||||
(let: loop2 : Inexact-Complex
|
||||
((y : (Listof Inexact-Complex) '(3.0+6.0i 4.0+8.0i))
|
||||
(s : Inexact-Complex 0.0+0.0i))
|
||||
(if (null? y)
|
||||
(loop1 (cdr x) (+ r s))
|
||||
(loop2 (cdr y) (+ s (car x) (car y)))))))
|
Loading…
Reference in New Issue
Block a user