mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-12 04:17:04 +03:00
More logging
This commit is contained in:
parent
09847cab01
commit
d86c288928
@ -450,12 +450,14 @@ cryCheckLinRel s logger x y p1 p2 =
|
||||
| a < 0 = K (Nat b) :- K (Nat (negate a)) :* Var x
|
||||
| otherwise = sumTerm (K (Nat a) :* Var x)
|
||||
|
||||
SMT.logMessage logger ("candidate: " ++ show (ppProp (Var y :==: expr)))
|
||||
|
||||
proved <- checkUnsat s
|
||||
$ propToSmtLib $ crySimplify
|
||||
$ Not $ Var y :==: expr
|
||||
|
||||
if not proved
|
||||
then return Nothing
|
||||
then SMT.logMessage logger "failed" >> return Nothing
|
||||
else return (Just (expr,wellDefined expr)))
|
||||
|
||||
-- Try to get an example of another point, which is finite, and at
|
||||
|
Loading…
Reference in New Issue
Block a user