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

Cryptol comparisons on compound types containing () are translated incorrectly #1579

Closed
brianhuffman opened this issue Feb 14, 2022 · 0 comments · Fixed by #1582
Closed

Cryptol comparisons on compound types containing () are translated incorrectly #1579

brianhuffman opened this issue Feb 14, 2022 · 0 comments · Fixed by #1582
Labels
subsystem: cryptol-saw-core Issues related to Cryptol -> saw-core translation with cryptol-saw-core type: bug Issues reporting bugs or unexpected/unwanted behavior

Comments

@brianhuffman
Copy link
Contributor

If a unit type occurs somewhere that's not all the way to the right, then the result of the comparison is just wrong. Here's an example:

Cryptol> ((), 0x2) < ((), 0x3)
True
sawscript> print {{ ((), 0x2) < ((), 0x3) }}
False
@brianhuffman brianhuffman added type: bug Issues reporting bugs or unexpected/unwanted behavior subsystem: cryptol-saw-core Issues related to Cryptol -> saw-core translation with cryptol-saw-core labels Feb 14, 2022
@brianhuffman brianhuffman linked a pull request Feb 15, 2022 that will close this issue
@mergify mergify bot closed this as completed in #1582 Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subsystem: cryptol-saw-core Issues related to Cryptol -> saw-core translation with cryptol-saw-core type: bug Issues reporting bugs or unexpected/unwanted behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant