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

Interactions between functors and constaint guards #1444

Closed
yav opened this issue Sep 28, 2022 · 0 comments
Closed

Interactions between functors and constaint guards #1444

yav opened this issue Sep 28, 2022 · 0 comments
Assignees
Labels
bug Something not working correctly parameterized modules Related to Cryptol's parameterized modules type-guards

Comments

@yav
Copy link
Member

yav commented Sep 28, 2022

Investigate: There appear to be some issues related to evalType being called on constraints, which leads to `panic

Issue: when instantiating a functor that contains constraint guards, it is possible that some of the constraint guards become
impossible (e.g., if they depend on the parameter). This means that the types corresponding to the functions implementing them
would contain an impossible assumption, which is currently represented with Error, and evalType is not happy with that.
We know that such functions will not be called as they are only called if the guard is true (which it will not) but it looks like our evaluator
eagerly evalutes such types.

@yav yav added bug Something not working correctly parameterized modules Related to Cryptol's parameterized modules type-guards labels Sep 28, 2022
@yav yav self-assigned this Sep 28, 2022
@yav yav closed this as completed Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something not working correctly parameterized modules Related to Cryptol's parameterized modules type-guards
Projects
None yet
Development

No branches or pull requests

1 participant