File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
kore/src/Kore/Rewrite/SMT Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -206,10 +206,8 @@ decidePredicate onUnknown sideCondition predicates =
206
206
retryWithScaledTimeout :: MonadSMT m => m Result -> m Result
207
207
retryWithScaledTimeout q = do
208
208
SMT. RetryLimit limit <- SMT. askRetryLimit
209
- -- Use the same timeout for the first retry, since sometimes z3
210
- -- decides it doesn't want to work today and all we need is to
211
- -- retry it once.
212
- let timeoutScales = takeWithin limit [1 .. ]
209
+ -- the timeout is doubled for every retry
210
+ let timeoutScales = takeWithin limit . map (2 ^ ) $ [1 :: Integer .. ]
213
211
retryActions = map (retryOnceWithScaledTimeout q) timeoutScales
214
212
combineRetries [] = pure $ Unknown " retry limit is 0"
215
213
combineRetries [r] = r
You can’t perform that action at this time.
0 commit comments