@@ -412,18 +412,18 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
412
412
, koreResult. logs
413
413
, fallbackLog
414
414
]
415
- loopState newLogs =
416
- ( currentDepth + boosterResult. depth + koreResult. depth
415
+ loopState incDepth newLogs =
416
+ ( currentDepth + boosterResult. depth + koreResult. depth + if incDepth then 1 else 0
417
417
, time + bTime + kTime
418
418
, koreTime + kTime
419
419
, postProcessLogs
420
420
<$> combineLogs (accumulatedLogs : newLogs)
421
421
)
422
- continueWith newLogs nextState =
422
+ continueWith incDepth newLogs nextState =
423
423
executionLoop
424
424
logSettings
425
425
def
426
- (loopState newLogs)
426
+ (loopState incDepth newLogs)
427
427
r{ExecuteRequest. state = nextState}
428
428
case (boosterResult. reason, koreResult. reason) of
429
429
(Aborted , res) ->
@@ -455,7 +455,7 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
455
455
" kore depth-bound, continuing... (currently at "
456
456
<> show (currentDepth + boosterResult. depth + koreResult. depth)
457
457
<> " )"
458
- continueWith [] (execStateToKoreJson koreResult. state)
458
+ continueWith False [] (execStateToKoreJson koreResult. state)
459
459
_ -> do
460
460
-- otherwise we have hit a different
461
461
-- HaltReason, at which point we should
@@ -471,7 +471,7 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
471
471
case postExecResult of
472
472
Left (nextState, newLogs) -> do
473
473
-- simplification revealed that we should actually proceed
474
- continueWith newLogs nextState
474
+ continueWith True newLogs nextState
475
475
Right result -> do
476
476
logStats ExecuteM (time + bTime + kTime, koreTime + kTime)
477
477
pure $
0 commit comments