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

Sawscript panics when nominal types are used in baked in Cryptol libraries. #2230

Open
mtullsen opened this issue Feb 20, 2025 · 0 comments
Open
Assignees
Labels
missing cryptol features Issues about features in Cryptol that don't work in SAW subsystem: cryptol-saw-core Issues related to Cryptol -> saw-core translation with cryptol-saw-core tech debt Issues that document or involve technical debt type: bug Issues reporting bugs or unexpected/unwanted behavior

Comments

@mtullsen
Copy link
Contributor

Sawscript panics when nominal types are used in baked in Cryptol libraries.

Problem

  • Originally, this bug manifests itself as described here Support importing Cryptol enums into SAWCore #2052 (comment), but the problem is not enums.

  • With some browsing around, we get the same panic when any nominal type (even struct, which should be supported) is used in any baked in Cryptol libraries that saw imports, e.g., deps/cryptol/lib/Cryptol.cry E.g., if one adds this code to that .../Cryptol.cry:

newtype Complex2 = { real2 : Integer, imag2 : Integer }

@mtullsen mtullsen added the type: bug Issues reporting bugs or unexpected/unwanted behavior label Feb 20, 2025
@mtullsen mtullsen self-assigned this Feb 20, 2025
@sauclovian-g sauclovian-g added tech debt Issues that document or involve technical debt subsystem: cryptol-saw-core Issues related to Cryptol -> saw-core translation with cryptol-saw-core missing cryptol features Issues about features in Cryptol that don't work in SAW labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing cryptol features Issues about features in Cryptol that don't work in SAW subsystem: cryptol-saw-core Issues related to Cryptol -> saw-core translation with cryptol-saw-core tech debt Issues that document or involve technical debt type: bug Issues reporting bugs or unexpected/unwanted behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants