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

Further fine-tune Int2Bytes(Int, Endianness, Signedness) equations for booster #4533

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

jberthold
Copy link
Member

The previous change #4522 was insufficient to make the equations usable in booster. Matches with literal Int constants will still be indeterminate, so this PR removes the literals from the rule LHSs.

  • Use 0 ==Int I instead of a syntactic match in the equation for argument 0. This enables evaluating terms with I ==Int 0 in the path condition.
  • Remove equation with literal -1 and widen requires in equation for negative arguments (previously I <Int -1, now I <Int 0). The result is the same as before with no extra equation required.

@rv-jenkins rv-jenkins changed the base branch from master to develop July 19, 2024 03:52
* Use `0 ==Int I` instead of a syntactic _match_ of the argument with `0`.
  This enables evaluating terms with `I ==Int 0` in the path condition.
* Remove case with literal `-1` and widen requires in equation for negative
  arguments (previously `I <Int -1`, now `I <Int 0`).
@jberthold jberthold force-pushed the HOTFIX-Int2Bytes-refactoring-no-2 branch from 00c8afa to 6225293 Compare July 19, 2024 03:53
@jberthold
Copy link
Member Author

NB Another, independent, issue is that the function is marked total but Int2Bytes(I, _, Unsigned) with I <Int 0 does not match any of the equations.

@jberthold jberthold marked this pull request as ready for review July 21, 2024 22:55
@rv-jenkins rv-jenkins merged commit 3435a3c into develop Jul 23, 2024
17 checks passed
@rv-jenkins rv-jenkins deleted the HOTFIX-Int2Bytes-refactoring-no-2 branch July 23, 2024 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants