File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 301301 (list 'if (loop cond (get-representation 'bool )) (loop ift type) (loop iff type))
302302 (list 'if (loop cond 'bool ) (loop ift type) (loop iff type)))]
303303 [(list (? impl-exists? impl) args ... ) (cons impl (map loop args (impl-info impl 'itype )))]
304- [(list (? (λ (x) (string-contains? (~a x) "unsound " )) op) args ... )
304+ [(list op args ... )
305+ #:when (string-contains? (~a op) "unsound " )
305306 (define op* (string->symbol (string-replace (symbol->string (car expr)) "unsound- " "" )))
306307 (cons op* (map loop args (map (const 'real ) args)))]
307308 [(list op args ... ) (cons op (map loop args (operator-info op 'itype )))])))
Original file line number Diff line number Diff line change 165165 (define repr (context-lookup context a))
166166 (define fmin (get-fpcore-impl 'fmin (repr->prop repr) (list repr repr)))
167167 (define fmax (get-fpcore-impl 'fmax (repr->prop repr) (list repr repr)))
168- (replace-vars (list (cons a (list fmin a b)) (cons b (list fmax a b) )) expression)]
168+ (replace-vars (list (list a fmin a b) (list b fmax a b)) expression)]
169169 [(list 'abs var)
170170 (define repr (context-lookup context var))
171171 (define fabs (get-fpcore-impl 'fabs (repr->prop repr) (list repr)))
Original file line number Diff line number Diff line change 2121
2222(define (drop-unsound expr)
2323 (match expr
24- [(list (? (λ (x) (string-contains? (~a x) "unsound " )) op) args ... )
24+ [(list op args ... )
25+ #:when (string-contains? (~a op) "unsound " )
2526 (define op* (string->symbol (string-replace (symbol->string (car expr)) "unsound- " "" )))
2627 (cons op* (map drop-unsound args))]
2728 [_ expr]))
You can’t perform that action at this time.
0 commit comments