Open msaaltink opened 4 years ago
Stumbled across this with Prelude.Nat
as well:
$ saw
version 0.7 (670e349-dirty)
sawscript> parse_core "4"
You have encountered a bug in cryptol-saw-core's implementation.
*** Please create an issue at https://github.com/GaloisInc/saw-core/issues
%< ---------------------------------------------------
Revision: f61023ebbb34c2d6acbda9fc2eb2d0ba0884604c
Branch: HEAD
Location: scCryptolType
Message: scCryptolType: unsupported type Prelude.Nat
CallStack (from HasCallStack):
panic, called at src/Verifier/SAW/Cryptol/Panic.hs:13:9 in cryptol-saw-core-0.1-Bsnj23LjNlkEA2Ker1hOsY:Verifier.SAW.Cryptol.Panic
panic, called at src/Verifier/SAW/Cryptol.hs:1540:19 in cryptol-saw-core-0.1-Bsnj23LjNlkEA2Ker1hOsY:Verifier.SAW.Cryptol
%< ---------------------------------------------------
sawscript>
I believe this is fixed now? On a recent checkout of master
, neither of the following appear to crash:
sawscript> parse_core "Vec 32 Bool"
[15:37:21.828] Prelude.Vec 32 Prelude.Bool
sawscript> parse_core "4"
[15:37:23.726] 4
(I'm assuming that bitvector n
is an alias for Vec n Bool
.)
Yes, this was fixed via #1336. It's probably worthwhile to keep this ticket open until we add a test case.
Executing
results in