File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
booster/library/Booster/SMT Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,17 @@ defaultSMTOptions =
87
87
initSolver :: Log. LoggerMIO io => KoreDefinition -> SMTOptions -> io SMT. SMTContext
88
88
initSolver def smtOptions = Log. withContext " smt" $ do
89
89
ctxt <- mkContext smtOptions. transcript
90
- -- set timeout value before doing anything with the solver
91
- runSMT ctxt $ runCmd_ $ SetTimeout smtOptions . timeout
90
+ -- set timeout to be used when checking prelude, use the default (not use supplied) timeout value
91
+ runSMT ctxt $ runCmd_ $ SetTimeout defaultSMTOptions . timeout
92
92
Log. logMessage (" Checking definition prelude" :: Text )
93
93
check <-
94
94
runSMT ctxt $
95
95
runPrelude def >> runCmd CheckSat
96
96
case check of
97
- Sat -> pure ctxt
97
+ Sat -> do
98
+ -- set timeout value for the general queries
99
+ runSMT ctxt $ runCmd_ $ SetTimeout smtOptions. timeout
100
+ pure ctxt
98
101
other -> do
99
102
Log. logMessage $ " Initial SMT definition check returned " <> pack (show other)
100
103
closeContext ctxt
You can’t perform that action at this time.
0 commit comments