mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-01 08:32:23 +03:00
Add module parameters as extra vars---prints nicer error messages.
This commit is contained in:
parent
83d0132e50
commit
b8707033d7
@ -51,8 +51,8 @@ property
|
||||
|
||||
type Integer = [64]
|
||||
|
||||
encrypt : {m} fin m =>
|
||||
K -> Nonce -> A -> [m * (p * n)] -> [m * (p * n) + tagAmount]
|
||||
encrypt :
|
||||
{m} fin m => K -> Nonce -> A -> [m * (p * n)] -> [m * (p * n) + tagAmount]
|
||||
encrypt key nonce state inputMsg = join ((drop`{1} go).0.message) # tag
|
||||
|
||||
where
|
||||
|
@ -186,8 +186,10 @@ proveImplication :: Maybe Name -> [TParam] -> [Prop] -> [Goal] -> InferM Subst
|
||||
proveImplication lnam as ps gs =
|
||||
do evars <- varsWithAsmps
|
||||
solver <- getSolver
|
||||
pas <- Map.elems <$> getParamTypes
|
||||
extra <- getParamConstraints
|
||||
(mbErr,su) <- io (proveImplicationIO solver lnam evars as (extra ++ ps) gs)
|
||||
(mbErr,su) <- io (proveImplicationIO solver lnam evars
|
||||
(pas ++ as) (extra ++ ps) gs)
|
||||
case mbErr of
|
||||
Right ws -> mapM_ recordWarning ws
|
||||
Left err -> recordError err
|
||||
|
Loading…
Reference in New Issue
Block a user