Skip to content

Conversation

yav
Copy link
Member

@yav yav commented Oct 1, 2025

Fixes #2657

Copy link
Contributor

@RyanGlScott RyanGlScott left a comment

Choose a reason for hiding this comment

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

This is looking nice! Some of the test cases are currently failing because their golden output needs to be updated, however.

Also, can you add some test cases demonstrating the new polymorphic functionality? Ideally, we'd have at least one test case that is expected to succeed, and perhaps some others that exercise the new error messages (which would be expected to fail).

@yav yav marked this pull request as ready for review October 2, 2025 21:45
Copy link
Contributor

@RyanGlScott RyanGlScott left a comment

Choose a reason for hiding this comment

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

Great, I'm happy with the way the code looks now (aside from two minor suggestions).

The algorithm that we use for mapping Cryptol types to Rust types has now become fairly complicated. Perhaps it's worth documenting this algorithm in crux-mir-comp's design document?

yav and others added 7 commits October 3, 2025 13:36
Co-authored-by: Ryan Scott <rscott@galois.com>
Co-authored-by: Ryan Scott <rscott@galois.com>
Co-authored-by: Ryan Scott <rscott@galois.com>
Co-authored-by: Ryan Scott <rscott@galois.com>
Co-authored-by: Ryan Scott <rscott@galois.com>
Co-authored-by: Ryan Scott <rscott@galois.com>
Co-authored-by: Ryan Scott <rscott@galois.com>
yav and others added 3 commits October 3, 2025 13:38
Co-authored-by: Ryan Scott <rscott@galois.com>
Co-authored-by: Ryan Scott <rscott@galois.com>
Copy link
Contributor

@RyanGlScott RyanGlScott left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks!

yav and others added 2 commits October 3, 2025 14:33
Co-authored-by: Ryan Scott <rscott@galois.com>
Co-authored-by: Ryan Scott <rscott@galois.com>
@yav yav merged commit a59b533 into master Oct 6, 2025
37 checks passed
@yav yav deleted the issue_2657 branch October 6, 2025 16:45
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.

crux-mir-comp: Add support for using size polymorphic Cryptol functions as overrides
2 participants