Skip to content

Commit 8fa0bdc

Browse files
authored
Merge pull request #1344 from herbie-fp/check-for-if-impl
Check that there's an implementation of `if` before we do regimes
2 parents 8d016d0 + da09f98 commit 8fa0bdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/mainloop.rkt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@
267267
(> (length alts) 1)
268268
(equal? (representation-type repr) 'real)
269269
(not (null? (context-vars ctx)))
270+
(get-fpcore-impl 'if '() (list <bool> repr repr))
270271
(get-fpcore-impl '<= '() (list repr repr)))
271272
(define opts
272273
(pareto-regimes (sort alts < #:key (curryr alt-cost repr)) start-prog ctx (*pcontext*)))

0 commit comments

Comments
 (0)