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

Parse model values of the form 5e1 (no decimal) #861

Merged
merged 4 commits into from
Apr 11, 2024

Conversation

atomb
Copy link
Collaborator

@atomb atomb commented Apr 4, 2024

Previously, models that contained real literals with no decimal point (e.g., 5e1) would lead to an exception in the model parser. This PR adapts Boogie to recognize such values.

Ensuring that Z3 will emit one of these values in a model is tricky, and a test for it would be fragile. But I've seen it appear in practice.

@atomb atomb marked this pull request as ready for review April 9, 2024 22:44
@atomb atomb requested a review from keyboardDrummer April 9, 2024 22:44
Copy link
Collaborator

@keyboardDrummer keyboardDrummer left a comment

Choose a reason for hiding this comment

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

Could you add a unit test for the method you've changed?

@atomb
Copy link
Collaborator Author

atomb commented Apr 10, 2024

Could you add a unit test for the method you've changed?

Done!

@atomb atomb requested a review from keyboardDrummer April 10, 2024 17:06
@keyboardDrummer keyboardDrummer merged commit 5cc90dc into boogie-org:master Apr 11, 2024
5 checks passed
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