File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -361,10 +361,10 @@ applyRule pat@Pattern{ceilConditions} rule = withRuleContext rule $ runRewriteRu
361
361
failRewrite $
362
362
RuleConditionUnclear rule . coerce . foldl1 AndTerm $
363
363
map coerce unclearRequires
364
-
365
364
case mbSolver of
366
365
Just solver -> do
367
- checkAllRequires <- SMT. checkPredicates solver prior mempty (Set. fromList unclearRequires)
366
+ checkAllRequires <-
367
+ SMT. checkPredicates solver prior mempty (Set. fromList unclearRequires)
368
368
369
369
case checkAllRequires of
370
370
Left SMT. SMTSolverUnknown {} ->
Original file line number Diff line number Diff line change @@ -57,9 +57,6 @@ throwSMT = throw . GeneralSMTError
57
57
throwSMT' :: String -> a
58
58
throwSMT' = throwSMT . pack
59
59
60
- throwUnknown :: Text -> Set Predicate -> Set Predicate -> a
61
- throwUnknown reason premises preds = throw $ SMTSolverUnknown reason premises preds
62
-
63
60
smtTranslateError :: Text -> a
64
61
smtTranslateError = throw . SMTTranslationError
65
62
@@ -401,7 +398,7 @@ checkPredicates ctxt givenPs givenSubst psToCheck
401
398
failBecauseUnknown :: ExceptT SMTError (SMT io ) (Maybe Bool )
402
399
failBecauseUnknown =
403
400
smtRun GetReasonUnknown >>= \ case
404
- ReasonUnknown reason -> throwUnknown reason givenPs psToCheck
401
+ ReasonUnknown reason -> throwE $ SMTSolverUnknown reason givenPs psToCheck
405
402
other -> throwSMT' $ " Unexpected result while calling ':reason-unknown': " <> show other
406
403
407
404
interactWihtSolver ::
You can’t perform that action at this time.
0 commit comments