Skip to content

Commit

Permalink
Hard reset in the beginning of isSat
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Aug 2, 2024
1 parent 30cf5fd commit 52daee1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion booster/library/Booster/SMT/Interface.hs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,9 @@ isSat ctxt psToCheck
Log.withContext Log.CtxAbort $ Log.logMessage $ "SMT translation error: " <> errMsg
pure . Left . SMTTranslationError $ errMsg
| Right (smtToCheck, transState) <- translated = Log.withContext Log.CtxSMT $ do
evalSMT ctxt . runExceptT $ solve smtToCheck transState
evalSMT ctxt . runExceptT $ do
lift $ hardResetSolver ctxt.options
solve smtToCheck transState
where
translated :: Either Text ([DeclareCommand], TranslationState)
translated =
Expand Down

0 comments on commit 52daee1

Please sign in to comment.