-
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
Encountered a bug in cryptol's implementation #702
Comments
As it turns out, this is a problem having to do with field name order in record types. Some parts of the code sort record fields alphabetically by name, while others don't, and yet other parts of the code assume that field names must match up in the same order. This is quite similar to issue #667, which I fixed a few months ago. I should have a patch ready pretty soon. As a temporary workaround you could sort the field names of your record types alphabetically in your Cryptol code; I haven't tried it, but I expect this would fix the problem. |
Here's a small example that exhibits the same error:
|
I did a little looking into this, the problem seems to be in
If However, it seems to me like the problem is mainly that the datatype for types represents records as a list of |
a concrete value in `toExpr`. Fixes #702
a concrete value in `toExpr`. Fixes #702
The link above is currently giving me a 404. |
PR #703 fixes the small example that I posted above, but it still fails on the original example with a different error message:
I'm working on coming up with a minimized example that we can use as a regression test. |
Here's a minimized example:
If you change the field names of type |
a concrete value in `toExpr`. Fixes #702
…`FinType` This solves another manifestation of issue #702.
Ah when i merged my PR, I deleted the remote branch out of habit. I still have it locally. Do you need me to push it up remotely again? |
We shouldn't need it any more; I still had a copy locally, and I used it to generate the minimized example above. We'll use the minimized examples as part of our suite of regression tests. |
Received the following error running the proof on this branch
https://github.com/NLMalloy/s2n/tree/client_authentication
The text was updated successfully, but these errors were encountered: