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
It seems that Cryptol panics if a file includes a file that imports a module.
$ more modA.cry
module modA where
x = 1
$ more include.cry
import modA
y = 3
$ more main.cry
include "include.cry"
z = 3
$ cryptol main.cry
┏━╸┏━┓╻ ╻┏━┓╺┳╸┏━┓╻
┃ ┣┳┛┗┳┛┣━┛ ┃ ┃ ┃┃
┗━╸╹┗╸ ╹ ╹ ╹ ┗━┛┗━╸
version 2.12.0.99
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: UNKNOWN
Branch: UNKNOWN
Location: ModuleSystem
Message: Interface not available
modA
CallStack (from HasCallStack):
panic, called at src/Cryptol/Utils/Panic.hs:21:9 in cryptol-2.12.0.99-inplace:Cryptol.Utils.Panic
panic, called at src/Cryptol/ModuleSystem/Monad.hs:475:18 in cryptol-2.12.0.99-inplace:Cryptol.ModuleSystem.Monad
%< ---------------------------------------------------
The text was updated successfully, but these errors were encountered:
The issue here is that before loading a module, we need to load its dependencies. The problem arises because we are computing the dependencies from the parsed modules, but before includes are resolved, and as a result dependencies arising from included files are missed.
yav
added a commit
that referenced
this issue
Mar 2, 2022
It seems that Cryptol panics if a file includes a file that imports a module.
The text was updated successfully, but these errors were encountered: