-
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
:check
crash on negative Integer
index
#861
Comments
The immediate source of the error is the call to cryptol/src/Cryptol/Testing/Random.hs Lines 246 to 252 in 3bec6cd
I'm not sure what invariant we're trying to maintain on Alternatively, we could avoid the question by indexing @robdockins, thoughts? |
I should also point out that this is an unsafe use of |
I've been operating under the invariant that consumers of We could use |
I suspect that the indexing primitive |
Indeed, it seems that this test is incomplete: cryptol/src/Cryptol/Eval/Generic.hs Line 1423 in 3bec6cd
Several of these cases look like they also need to handle the possibility that an integer index could be negative. |
The problem appears to be an uncaught exception triggered when
:check
considers a negativeInteger
as the index for@
. This appears not to be triggered whena
isBit
or satisfiesZero a
andseq
iszero
:The text was updated successfully, but these errors were encountered: