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

newtype causes saw to panic #1494

Closed
weaversa opened this issue Nov 2, 2021 · 1 comment
Closed

newtype causes saw to panic #1494

weaversa opened this issue Nov 2, 2021 · 1 comment
Assignees
Labels
bug cryptol-saw-core Related to cryptol-saw-core package

Comments

@weaversa
Copy link
Contributor

weaversa commented Nov 2, 2021

newtype T_t = { value : [2] }
T = { C1 = T_t { value = 0b00 }
    , C2 = T_t { value = 0b01 }
    , C3 = T_t { value = 0b10 }
    }
> import "test.cry"
You have encountered a bug in cryptol-saw-core's implementation.
*** Please create an issue at https://github.com/GaloisInc/saw-script/issues

%< ---------------------------------------------------
  Revision:  UNKNOWN
  Branch:    UNKNOWN
  Location:  importExpr
  Message:   unknown variable: Name {nUnique = 4717, nInfo = Declared (TopModule (ModName "Main")) UserName, nNamespace = NSType, nIdent = Ident False "T_t", nFixity = Nothing, nLoc = Range\
 {from = Position {line = 1, col = 9}, to = Position {line = 1, col = 12}, source = "test.cry"}}
CallStack (from HasCallStack):
  panic, called at src/Verifier/SAW/Cryptol/Panic.hs:13:9 in cryptol-saw-core-0.1-inplace:Verifier.SAW.Cryptol.Panic
  panic, called at src/Verifier/SAW/Cryptol.hs:982:25 in cryptol-saw-core-0.1-inplace:Verifier.SAW.Cryptol
@robdockins robdockins added bug cryptol-saw-core Related to cryptol-saw-core package labels Nov 9, 2021
@pnwamk pnwamk self-assigned this Feb 11, 2022
@RyanGlScott
Copy link
Contributor

Fixed in #1597.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cryptol-saw-core Related to cryptol-saw-core package
Projects
None yet
Development

No branches or pull requests

4 participants