You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is some buggy code that causes an error. (The curly brackets in the function body should not be there.)
$ cat bug.cry
perm_prop : {n} (fin n) => [n][32] -> Bit
perm_prop p = all (\x -> x < `{n}) p
$ cryptol bug.cry
┏━╸┏━┓╻ ╻┏━┓╺┳╸┏━┓╻
┃ ┣┳┛┗┳┛┣━┛ ┃ ┃ ┃┃
┗━╸╹┗╸ ╹ ╹ ╹ ┗━┛┗━╸
version 2.10.0 https://cryptol.net :? for help
Loading module Cryptol
Loading module Main
cryptol: You have encountered a bug in Cryptol's implementation.
*** Please create an issue at https://github.com/GaloisInc/cryptol/issues
%< ---------------------------------------------------
Revision: 3cab6e6
Branch: release-2.10.0 (uncommited files present)
Location: doCheckType
Message: TTyApp found when kind checking, but it should have been eliminated already
CallStack (from HasCallStack):
panic, called at src/Cryptol/Utils/Panic.hs:21:9 in cryptol-2.10.0-inplace:Cryptol.Utils.Panic
panic, called at src/Cryptol/TypeCheck/Kind.hs:391:24 in cryptol-2.10.0-inplace:Cryptol.TypeCheck.Kind
%< ---------------------------------------------------
$
The text was updated successfully, but these errors were encountered:
With a recent development version, it looks like this doesn't panic anymore. I'm going to do a bit more testing to see exactly which versions have the bug.
Here is some buggy code that causes an error. (The curly brackets in the function body should not be there.)
$ cat bug.cry
perm_prop : {n} (fin n) => [n][32] -> Bit
perm_prop p = all (\x -> x < `{n}) p
$ cryptol bug.cry
┏━╸┏━┓╻ ╻┏━┓╺┳╸┏━┓╻
┃ ┣┳┛┗┳┛┣━┛ ┃ ┃ ┃┃
┗━╸╹┗╸ ╹ ╹ ╹ ┗━┛┗━╸
version 2.10.0
https://cryptol.net :? for help
Loading module Cryptol
Loading module Main
cryptol: You have encountered a bug in Cryptol's implementation.
*** Please create an issue at https://github.com/GaloisInc/cryptol/issues
%< ---------------------------------------------------
Revision: 3cab6e6
Branch: release-2.10.0 (uncommited files present)
Location: doCheckType
Message: TTyApp found when kind checking, but it should have been eliminated already
CallStack (from HasCallStack):
panic, called at src/Cryptol/Utils/Panic.hs:21:9 in cryptol-2.10.0-inplace:Cryptol.Utils.Panic
panic, called at src/Cryptol/TypeCheck/Kind.hs:391:24 in cryptol-2.10.0-inplace:Cryptol.TypeCheck.Kind
%< ---------------------------------------------------
$
The text was updated successfully, but these errors were encountered: