-
Notifications
You must be signed in to change notification settings - Fork 33
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
feat: exporting alt-ergo FPA built-in primitives #876
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9b8b355
Exporing rounding mode to SMT
Stevendeo 51166dd
Adding round as a non indexed primitive
Stevendeo 17180db
Indexed identifier
Stevendeo 194d614
Poetry
Stevendeo 4172615
Adding some tests
Stevendeo 8bfa309
Reverting Rounding Mode as index
Stevendeo c2c1655
Not relying on input format
Stevendeo de6ae21
Injecting AE type float rounding type into SMT rounding type
Stevendeo 9885bad
Poetry
Stevendeo 70a5c39
Style
Stevendeo 231d4ca
Poetry
Stevendeo 3e0c98f
More poetry
Stevendeo 38615e8
Also translating on the native side
Stevendeo ec216f8
Adding missing tests
Stevendeo f24f32c
Rebase artifact
Stevendeo 42a7a81
Adding tests and some poetry
Stevendeo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: while this is correct, I feel like having the generic
add_builtin_enum
available is useful.We could do
add_builtin_enum ?(rename = Fun.id) map
with an optionalrename
argument that isfun c -> Option.get (Fpa_rounding.translate_smt_rounding_mode c)
for the rounding mode. On the other hand we can also do this when (if) we ever have more builtin enums to add before removing the legacy typechecker entirely, so eh.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC there was a more generic version of this function, which I specialized because it was used only once and I did not expect we would add new enums to the legacy syntax. I can revert it, but I already changed it to simplify the reading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The generic version did not handle renaming so you were right to specialize it. This is a nit, feel free to ignore it :)