Skip to content

Commit 72311db

Browse files
committed
Merge remote-tracking branch 'origin/master' into georgy-retry-smt-in-booster
2 parents 9b81bf1 + b6ab7a9 commit 72311db

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

booster/library/Booster/Pattern/Rewrite.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,10 @@ applyRule pat@Pattern{ceilConditions} rule = withRuleContext rule $ runRewriteRu
361361
failRewrite $
362362
RuleConditionUnclear rule . coerce . foldl1 AndTerm $
363363
map coerce unclearRequires
364-
365364
case mbSolver of
366365
Just solver -> do
367-
checkAllRequires <- SMT.checkPredicates solver prior mempty (Set.fromList unclearRequires)
366+
checkAllRequires <-
367+
SMT.checkPredicates solver prior mempty (Set.fromList unclearRequires)
368368

369369
case checkAllRequires of
370370
Left SMT.SMTSolverUnknown{} ->

booster/library/Booster/SMT/Interface.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ throwSMT = throw . GeneralSMTError
5757
throwSMT' :: String -> a
5858
throwSMT' = throwSMT . pack
5959

60-
throwUnknown :: Text -> Set Predicate -> Set Predicate -> a
61-
throwUnknown reason premises preds = throw $ SMTSolverUnknown reason premises preds
62-
6360
smtTranslateError :: Text -> a
6461
smtTranslateError = throw . SMTTranslationError
6562

@@ -401,7 +398,7 @@ checkPredicates ctxt givenPs givenSubst psToCheck
401398
failBecauseUnknown :: ExceptT SMTError (SMT io) (Maybe Bool)
402399
failBecauseUnknown =
403400
smtRun GetReasonUnknown >>= \case
404-
ReasonUnknown reason -> throwUnknown reason givenPs psToCheck
401+
ReasonUnknown reason -> throwE $ SMTSolverUnknown reason givenPs psToCheck
405402
other -> throwSMT' $ "Unexpected result while calling ':reason-unknown': " <> show other
406403

407404
interactWihtSolver ::

0 commit comments

Comments
 (0)