Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Make test binary translate and check Float.cry and Array.cry.
Browse files Browse the repository at this point in the history
This is another step toward addressing #25.
  • Loading branch information
Brian Huffman committed Jul 30, 2020
1 parent 0410199 commit a48cce3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/CryptolVerifierTC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ main =
C.scLoadCryptolModule sc
putStrLn "Loaded Cryptol.sawcore!"
let ?fileReader = BS.readFile
cenv <- CEnv.initCryptolEnv sc
cenv0 <- CEnv.initCryptolEnv sc
putStrLn "Translated Cryptol.cry!"
mapM_ (checkTranslation sc) $ Map.assocs (CEnv.eTermEnv cenv)
cenv1 <- CEnv.importModule sc cenv0 (Right N.floatName) Nothing Nothing
putStrLn "Translated Float.cry!"
cenv2 <- CEnv.importModule sc cenv1 (Right N.arrayName) Nothing Nothing
putStrLn "Translated Array.cry!"
mapM_ (checkTranslation sc) $ Map.assocs (CEnv.eTermEnv cenv2)
putStrLn "Checked all terms!"

checkTranslation :: SharedContext -> (N.Name, Term) -> IO ()
Expand Down

0 comments on commit a48cce3

Please sign in to comment.