Skip to content

Conversation

@AYadrov
Copy link
Contributor

@AYadrov AYadrov commented Jun 30, 2025

Recently, it has been noticed that older versions of Herbie are not compatible with new Rival's changes regarding analyze with hints.
This PR provides an old-style rival-analyze for older versions of Herbie in order to being able to use them.

@AYadrov AYadrov requested a review from pavpanchekha June 30, 2025 04:26
Copy link
Contributor

@pavpanchekha pavpanchekha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make the matching PR to Herbie so we can merge both in short succession? Because this is going to break Herbie main, right?

eval/main.rkt Outdated
Comment on lines 95 to 102

(define (rival-analyze machine rect)
; Load arguments
(rival-machine-load machine rect)
(define-values (good? done? bad? stuck? fvec)
(parameterize ([*sampling-iteration* 0])
(rival-machine-full machine (rival-machine-default-hint machine))))
(ival (or bad? stuck?) (not good?)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine but since it isn't perf sensitive why not just call rival-analyze-with-hints and discard the hints? Would avoid the copy-and-paste.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, just made a Herbie's PR as well

@pavpanchekha pavpanchekha merged commit 57ca115 into main Jul 8, 2025
1 check passed
@pavpanchekha pavpanchekha deleted the rival-analyze-with-hints branch October 1, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants