Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
devops committed Aug 12, 2024
2 parents 2a82b2d + 8fc07af commit 9c48024
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions booster/library/Booster/SMT/Interface.hs
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,12 @@ translatePrelude def =

checkPrelude :: Log.LoggerMIO io => SMT io ()
checkPrelude = do
-- set large default timeout value for checking the prelude
setTimeout defaultSMTOptions.timeout
Log.logMessage ("Checking definition prelude" :: Text)
ctxt <- SMT get
-- set the user defined timeout for queries
setTimeout ctxt.options.timeout
Log.logMessage ("Checking definition prelude" :: Text)
-- send the commands from the definition's SMT prelude
check <- mapM_ runCmd ctxt.prelude >> runCmd CheckSat
-- set user defined timeout value for the general queries
setTimeout ctxt.options.timeout
case check of
Sat -> pure ()
other -> do
Expand Down

0 comments on commit 9c48024

Please sign in to comment.