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

"Unexpected Fin constraint violation!" #534

Closed
weaversa opened this issue Aug 13, 2019 · 2 comments
Closed

"Unexpected Fin constraint violation!" #534

weaversa opened this issue Aug 13, 2019 · 2 comments
Assignees

Comments

@weaversa
Copy link
Contributor

$ cryptol
┏━╸┏━┓╻ ╻┏━┓╺┳╸┏━┓╻  
┃  ┣┳┛┗┳┛┣━┛ ┃ ┃ ┃┃  
┗━╸╹┗╸ ╹ ╹   ╹ ┗━┛┗━╸
version 2.7.1 (1e11ff6)

Loading module Cryptol
Cryptol> transpose (zero : [inf][1][1])
[[0x0, 0x0, 0x0, 0x0, 0x0, ...]]
$ saw
 ┏━━━┓━━━┓━┓━┓━┓
 ┃ ━━┓ ╻ ┃ ┃ ┃ ┃
 ┣━━ ┃ ╻ ┃┓ ╻ ┏┛
 ┗━━━┛━┛━┛┗━┛━┛ version 0.3 (58e71d5)

sawscript> print {{ transpose (zero : [inf][1][1]) }}
saw: Unexpected Fin constraint violation!
@brianhuffman
Copy link
Contributor

It appears that when we implemented transpose in saw-core, we omitted the cases for infinite sizes. (https://github.com/GaloisInc/cryptol-verifier/blob/master/saw/Cryptol.sawcore#L1066) This should be pretty easy to fix.

@brianhuffman brianhuffman self-assigned this Aug 13, 2019
brianhuffman pushed a commit to GaloisInc/cryptol-verifier that referenced this issue Aug 13, 2019
brianhuffman pushed a commit that referenced this issue Aug 13, 2019
Update cryptol-verifier version. Fixes #534.
@weaversa
Copy link
Contributor Author

Thank you!

Ptival pushed a commit that referenced this issue Oct 31, 2019
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

No branches or pull requests

2 participants