-
Notifications
You must be signed in to change notification settings - Fork 123
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
type mismatch in Cryptol.Eval.Concrete.toExpr #851
Comments
I think I found the problem: It's this line of code in function cryptol/src/Cryptol/Eval/Concrete.hs Line 98 in 8f293e3
I believe this example program leads to a situation where the value is a VWord , but the pattern TCon (TC TCBit) [] for the sequence element type doesn't match, because type Bit is hidden behind the type synonym Bool . (Note that changing Bool to Bit in the example program fixes the problem.)
To fix this, we should use the view patterns we have for types that use cryptol/src/Cryptol/Eval/Concrete.hs Line 59 in 8f293e3
|
I just want to point out that |
In this spec
running
:check problem
crashes Cryptol:The text was updated successfully, but these errors were encountered: