Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
314af7c
refactor: new function loadAndTranslateModule, extracted from importM…
mtullsen Sep 16, 2025
c92992a
comments and whitespace
mtullsen Sep 18, 2025
5042953
refactor: move code for generating CryptolModule into mkCryptolModule
mtullsen Sep 18, 2025
df05469
refactors
mtullsen Sep 18, 2025
709b9ee
improve fail message
mtullsen Sep 18, 2025
162b324
comments.
mtullsen Sep 18, 2025
4914e31
refactor: fold loadAndTranslateModule
mtullsen Sep 18, 2025
ba3a517
comments, refactors
mtullsen Sep 18, 2025
24ed0d4
refactor: make names more consistent
mtullsen Sep 18, 2025
729af4c
improve comments
mtullsen Sep 19, 2025
1e854e3
comments, refactors (re-ordering, folding locatedUnknown, new mkImport)
mtullsen Sep 19, 2025
63e3f45
refactor (with dead code, thus no compile), in prep for ...
mtullsen Sep 20, 2025
a3344f3
generalize the internals of "CryptolModule" (as seen on command-line)…
mtullsen Sep 21, 2025
0a284d3
refactors, comments, whitespace
mtullsen Sep 24, 2025
87a1630
revert (misguided) c923c717b
mtullsen Sep 24, 2025
007661a
comments: move/improve; change whitespace/identing
mtullsen Sep 24, 2025
536a39d
refactor: re-plumb to get more arguments to `extractDefFromExtCryptol…
mtullsen Sep 24, 2025
5e2f44f
finish "generalize the internals of "CryptolModule" by finishing extr…
mtullsen Sep 24, 2025
55a4f60
comments
mtullsen Sep 25, 2025
f796432
plumb ?fileReader down.
mtullsen Sep 25, 2025
55a0b8e
refactor mkCryptolModule (inline internals and simplify)
mtullsen Sep 27, 2025
a6d2662
wibble to improve messages (info and error)
mtullsen Sep 27, 2025
6d21c1d
refactor
mtullsen Sep 28, 2025
6ee4c10
Improve how we show a ECM_LoadedModule to the user.
mtullsen Sep 28, 2025
99f7ddf
comments
mtullsen Sep 28, 2025
40352f9
new test
mtullsen Sep 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crux-mir-comp/src/Mir/Cryptol.hs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ loadCryptolFunc col sig modulePath name = do
let ?fileReader = BS.readFile
ce <- liftIO (readIORef (mirCryEnv mirState))
let modName = Cry.textToModName modulePath
ce' <- liftIO $ SAW.importModule sc ce (Right modName) Nothing SAW.PublicAndPrivate Nothing
ce' <- liftIO $ SAW.importCryptolModule sc ce (Right modName) Nothing SAW.PublicAndPrivate Nothing
liftIO (writeIORef (mirCryEnv mirState) ce')
-- (m, _ce') <- liftIO $ SAW.loadCryptolModule sc ce (Text.unpack modulePath)
-- tt <- liftIO $ SAW.extractDefFromCryptolModule m (Text.unpack name)
Expand Down
Loading
Loading