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
Even though Numeric Constraint Guards look to be working properly in a non-parameterized module, a bug appears in parameterized ones.
How to reproduce:
Contents of spec.cry:
module spec = parameterized where
type m = 1
Contents of parameterized.cry:
module parameterized where
parameter
type m : #
len : {n} (fin n) => [n] -> Integer
len xs | n == 0 => 0
| n > 0 => 1 + len (drop `{1} xs)
Run $ cryptol spec.cry
Outcome:
cryptol: You have encountered a bug in Cryptol's implementation.
*** Please create an issue at https://github.com/GaloisInc/cryptol/issues
%< ---------------------------------------------------
Revision: UNKNOWN
Branch: UNKNOWN
Location: inst
Message: This is not implemented for EPropGuards yet.
CallStack (from HasCallStack):
panic, called at src/Cryptol/Utils/Panic.hs:21:9 in cryptl-2.13.0.99-324846d2:Cryptol.Utils.Panic
panic, called at src/Cryptol/ModuleSystem/InstantiateModule.hs:222:36 in cryptl-2.13.0.99-324846d2:Cryptol.ModuleSystem.InstantiateModule
%< ---------------------------------------------------
I built Cryptol from source using commit: 953673b.
ghc version: 8.10.7
cabal version: 3.6.2.0
The text was updated successfully, but these errors were encountered:
Even though Numeric Constraint Guards look to be working properly in a non-parameterized module, a bug appears in parameterized ones.
How to reproduce:
Run
$ cryptol spec.cry
Outcome:
I built Cryptol from source using commit:
953673b
.ghc version:
8.10.7
cabal version:
3.6.2.0
The text was updated successfully, but these errors were encountered: