mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 16:57:35 +02:00
WIP
This commit is contained in:
parent
bafa80f63b
commit
d112632300
1 changed files with 7 additions and 2 deletions
|
@ -456,7 +456,11 @@
|
|||
;; TODO: check for more than one arg??
|
||||
(equal? (length (cdr exp))
|
||||
(length (ast:lambda-formals->list (car exp))))
|
||||
(all-prim-calls? (cdr exp)))
|
||||
(every
|
||||
(lambda (arg)
|
||||
(and (prim-call? arg)
|
||||
(not (prim:cont? (car arg)))))
|
||||
(cdr exp)))
|
||||
(let ((args (cdr exp)))
|
||||
(for-each
|
||||
(lambda (param)
|
||||
|
@ -536,7 +540,8 @@
|
|||
(trace:info "---------------- cps analysis db:")
|
||||
(trace:info (adb:get-db))
|
||||
;ast ;; DEBUGGING!!!
|
||||
(opt:contract ast)
|
||||
;(contract-prims
|
||||
; (opt:contract ast))
|
||||
)
|
||||
|
||||
;; Older code, delete this soon
|
||||
|
|
Loading…
Add table
Reference in a new issue