mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-18 13:31:50 +03:00
WARNING: NOT SURE ABOUT THIS. For now, assume that all vars send to solver are finite.
This commit is contained in:
parent
a23d294b1c
commit
d9dcbea012
@ -299,8 +299,10 @@ declareVar Solver { .. } a =
|
|||||||
do done <- fmap (a `viElem`) (readIORef declared)
|
do done <- fmap (a `viElem`) (readIORef declared)
|
||||||
unless done $
|
unless done $
|
||||||
do e <- SMT.declare solver (smtName a) SMT.tInt
|
do e <- SMT.declare solver (smtName a) SMT.tInt
|
||||||
_ <- SMT.declare solver (smtFinName a) SMT.tBool
|
let fin_a = smtFinName a
|
||||||
SMT.assert solver(SMT.geq e (SMT.int 0))
|
_ <- SMT.declare solver fin_a SMT.tBool
|
||||||
|
SMT.assert solver (SMT.geq e (SMT.int 0))
|
||||||
|
SMT.assert solver (SMT.const fin_a) -- HMM ???
|
||||||
modifyIORef' declared (viInsert a)
|
modifyIORef' declared (viInsert a)
|
||||||
|
|
||||||
-- | Add an assertion to the current context.
|
-- | Add an assertion to the current context.
|
||||||
|
Loading…
Reference in New Issue
Block a user