mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 23:37:38 +02:00
Restrict contains-if check to "called-once" expansion
This commit is contained in:
parent
84d9d114dc
commit
8648e66ca6
1 changed files with 2 additions and 1 deletions
|
@ -1461,7 +1461,8 @@
|
||||||
;; case we do not want to beta-expand as a contraction
|
;; case we do not want to beta-expand as a contraction
|
||||||
;; because duplicate instances of the same code may be
|
;; because duplicate instances of the same code may be
|
||||||
;; introduced, causing problems downstream.
|
;; introduced, causing problems downstream.
|
||||||
(not (contains-if? (ast:lambda-body fnc)))
|
(and called-once?
|
||||||
|
(not (contains-if? (ast:lambda-body fnc))))
|
||||||
))
|
))
|
||||||
)))
|
)))
|
||||||
(else #f)))
|
(else #f)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue