Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump Rival commands from Herbie #1142

Merged
merged 3 commits into from
Jan 27, 2025
Merged

Dump Rival commands from Herbie #1142

merged 3 commits into from
Jan 27, 2025

Conversation

pavpanchekha
Copy link
Contributor

This PR adds a dump:rival Herbie flag (analogous to the existing dump:rival flag) that dumps every Rival machine to its own file, in Rival format, with every invocation. This might contribute to efforts to make Rival a standalone program.

I've taken some care to ensure that it's exactly the same inputs, which is a little annoying to read since it means we have to convert all inputs to rationals. @AYadrov possibly this can replace the existing giant JSON file we use in the Rival nightly.

@pavpanchekha
Copy link
Contributor Author

Also @AYadrov right now the Rival REPL doesn't support hints. Maybe there's a way to add support? If we did then we could add the hints to the dump.

@AYadrov
Copy link
Contributor

AYadrov commented Jan 27, 2025

Yes, that would be good and interesting to implement!

@pavpanchekha pavpanchekha merged commit 5f9ba85 into main Jan 27, 2025
6 checks passed
@pavpanchekha pavpanchekha deleted the dump-rival branch January 27, 2025 23:19
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.

2 participants