mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-18 05:21:57 +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)
|
||||
unless done $
|
||||
do e <- SMT.declare solver (smtName a) SMT.tInt
|
||||
_ <- SMT.declare solver (smtFinName a) SMT.tBool
|
||||
SMT.assert solver(SMT.geq e (SMT.int 0))
|
||||
let fin_a = smtFinName a
|
||||
_ <- 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)
|
||||
|
||||
-- | Add an assertion to the current context.
|
||||
|
Loading…
Reference in New Issue
Block a user