@@ -110,20 +110,7 @@ respondEither cfg@ProxyConfig{statsVar, boosterState} booster kore req = case re
110
110
ImpliesM
111
111
( Implies
112
112
impliesReq
113
- { ImpliesRequest. logSuccessfulSimplifications =
114
- Just $ Log. LevelOther " SimplifyJson" `elem` cfg. customLogLevels
115
- }
116
113
)
117
- case koreResult of
118
- Right (Implies koreRes) -> do
119
- -- Kore may have produced simplification logs during rewriting. If so,
120
- -- output them Kore at "SimplifyJson" level. Erase terms from the traces.
121
- when (isJust koreRes. logs) $ do
122
- outputLogsAtLevel (Log. LevelOther " SimplifyJson" )
123
- . map RPCLog. logEntryEraseTerms
124
- . fromJust
125
- $ koreRes. logs
126
- _ -> pure ()
127
114
pure koreResult
128
115
Simplify simplifyReq ->
129
116
liftIO (getTime Monotonic ) >>= handleSimplify simplifyReq . Just
@@ -175,8 +162,6 @@ respondEither cfg@ProxyConfig{statsVar, boosterState} booster kore req = case re
175
162
Simplify
176
163
simplifyReq
177
164
{ SimplifyRequest. state = boosterRes. state
178
- , SimplifyRequest. logSuccessfulSimplifications =
179
- Just $ Log. LevelOther " SimplifyJson" `elem` cfg. customLogLevels
180
165
}
181
166
(koreResult, koreTime) <- Stats. timed $ kore koreReq
182
167
case koreResult of
@@ -194,13 +179,6 @@ respondEither cfg@ProxyConfig{statsVar, boosterState} booster kore req = case re
194
179
diffBy def boosterRes. state. term koreRes. state. term
195
180
in Text. pack (" Kore simplification: Diff (< before - > after)\n " <> diff)
196
181
stop <- liftIO $ getTime Monotonic
197
- -- output simplification traces returned by Kore at "SimplifyJson" level, effectively
198
- -- appending them to Booster's traces. Erase terms from the traces.
199
- when (isJust koreRes. logs) $ do
200
- outputLogsAtLevel (Log. LevelOther " SimplifyJson" )
201
- . map RPCLog. logEntryEraseTerms
202
- . fromJust
203
- $ koreRes. logs
204
182
let timing
205
183
| Just start <- mbStart
206
184
, fromMaybe False simplifyReq. logTiming =
@@ -369,8 +347,6 @@ respondEither cfg@ProxyConfig{statsVar, boosterState} booster kore req = case re
369
347
{ state = execStateToKoreJson simplifiedBoosterState
370
348
, maxDepth = Just $ Depth 1
371
349
, assumeStateDefined = Just True
372
- , ExecuteRequest. logSuccessfulSimplifications =
373
- Just $ Log. LevelOther " SimplifyJson" `elem` cfg. customLogLevels
374
350
}
375
351
)
376
352
when (isJust statsVar) $ do
@@ -416,16 +392,6 @@ respondEither cfg@ProxyConfig{statsVar, boosterState} booster kore req = case re
416
392
Log. logOtherNS " proxy" (Log. LevelOther " Aborts" ) $
417
393
" kore confirms result " <> Text. pack (show bRes)
418
394
419
- -- Kore may have produced simplification logs during rewriting. If so,
420
- -- output them Kore at "SimplifyJson" level, effectively
421
- -- appending them to Booster's traces. Erase terms from the traces.
422
- when (isJust koreResult. logs) $ do
423
- outputLogsAtLevel (Log. LevelOther " SimplifyJson" )
424
- . map RPCLog. logEntryEraseTerms
425
- . filter isSimplificationLogEntry
426
- . fromJust
427
- $ koreResult. logs
428
-
429
395
case koreResult. reason of
430
396
DepthBound -> do
431
397
-- if we made one step, add the number of
@@ -644,15 +610,6 @@ combineLogs logSources
644
610
| all isNothing logSources = Nothing
645
611
| otherwise = Just $ concat $ catMaybes logSources
646
612
647
- -- | Log a list of RPCLog items at a certain level
648
- outputLogsAtLevel :: Log. MonadLogger m => Log. LogLevel -> [RPCLog. LogEntry ] -> m ()
649
- outputLogsAtLevel level = mapM_ (Log. logOtherNS " proxy" level . RPCLog. encodeLogEntryText)
650
-
651
- isSimplificationLogEntry :: RPCLog. LogEntry -> Bool
652
- isSimplificationLogEntry = \ case
653
- RPCLog. Simplification {} -> True
654
- _ -> False
655
-
656
613
makeVacuous :: Maybe [RPCLog. LogEntry ] -> ExecuteResult -> ExecuteResult
657
614
makeVacuous newLogs execState =
658
615
execState
0 commit comments