Skip to content

Commit

Permalink
Revert or-in-for/and-to-filter-clause resyntax rule application
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfirth authored and samth committed Oct 9, 2024
1 parent ba9c141 commit 387eb47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typed-racket-lib/typed-racket/optimizer/float.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@
;; (Note: could allow for more args, if not next to each other, but
;; probably not worth the trouble (most ops have 2 args anyway))
(and (subtypeof? this-syntax -Flonum)
(for/and ([a (in-syntax #'(fs ...))]
#:unless (subtypeof? a -Flonum))
(for/and ([a (in-syntax #'(fs ...))])
;; flonum or provably non-zero
(subtypeof? a (Un -PosReal -NegReal)))
(or (subtypeof? a -Flonum)
(subtypeof? a (Un -PosReal -NegReal))))
(>= 1
(for/sum ([a (in-syntax #'(fs ...))]
#:when (not (subtypeof? a -Flonum)))
Expand Down

0 comments on commit 387eb47

Please sign in to comment.