File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
booster/library/Booster/SMT Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -298,21 +298,16 @@ checkPredicates ctxt givenPs givenSubst psToCheck
298
298
" Check of Given ∧ P and Given ∧ !P produced "
299
299
<> pack (show (positive, negative))
300
300
301
+ processSMTResult positive negative (retryOnce smtGiven sexprsToCheck transState)
302
+ where
303
+ processSMTResult positive negative onUnknown =
301
304
case (positive, negative) of
302
305
(Unsat , Unsat ) -> throwSMT " Inconsistent ground truth: should have been caught above"
303
306
(Sat , Sat ) -> fail " Implication not determined"
304
307
(Sat , Unsat ) -> pure True
305
308
(Unsat , Sat ) -> pure False
306
- (Unknown , _) -> failBecauseUnknown
307
- -- n <- lift . SMT $ gets retriesLeft
308
- -- if (n > 0)
309
- -- then do
310
- -- lift $ checkPredicates ctxt givenPs givenSubst psToCheck
311
- -- else failBecauseUnknown
312
- (_, Unknown ) -> do
313
- smtRun GetReasonUnknown >>= \ case
314
- ReasonUnknown reason -> throwUnknown reason givenPs psToCheck
315
- other -> throwSMT' $ " Unexpected result while calling ':reason-unknown': " <> show other
309
+ (Unknown , _) -> onUnknown
310
+ (_, Unknown ) -> onUnknown
316
311
other -> throwSMT' $ " Unexpected result while checking a condition: " <> show other
317
312
where
318
313
You can’t perform that action at this time.
0 commit comments