Skip to content

Commit af110c2

Browse files
committed
Merge remote-tracking branch 'origin/master' into 3813-map-update-hook-and-hook-refactoring
2 parents 7104f76 + 3828397 commit af110c2

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

booster/tools/booster/Server.hs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,15 @@ main = do
145145
monadLogger <- askLoggerIO
146146

147147
koreLogEntriesAsJsonSelector <-
148-
case Map.lookup (Logger.LevelOther "SimplifyJson") logLevelToKoreLogEntryMap of
149-
Nothing -> do
150-
Logger.logWarnNS
151-
"proxy"
152-
"Could not find out which Kore log entries correspond to the SimplifyJson level"
153-
pure (const False)
154-
Just es -> pure (`elem` es)
148+
if Logger.LevelOther "SimplifyJson" `elem` customLevels
149+
then case Map.lookup (Logger.LevelOther "SimplifyJson") logLevelToKoreLogEntryMap of
150+
Nothing -> do
151+
Logger.logWarnNS
152+
"proxy"
153+
"Could not find out which Kore log entries correspond to the SimplifyJson level"
154+
pure (const False)
155+
Just koreSimplificationLogEntries -> pure (`elem` koreSimplificationLogEntries)
156+
else pure (const False)
155157

156158
liftIO $ void $ withBugReport (ExeName "kore-rpc-booster") BugReportOnError $ \_reportDirectory -> withMDLib llvmLibraryFile $ \mdl -> do
157159
let coLogLevel = fromMaybe Log.Info $ toSeverity logLevel

dev-tools/kore-rpc-dev/Server.hs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,15 @@ main = do
157157
monadLogger <- askLoggerIO
158158

159159
koreLogEntriesAsJsonSelector <-
160-
case Map.lookup (Logger.LevelOther "SimplifyJson") logLevelToKoreLogEntryMap of
161-
Nothing -> do
162-
Logger.logWarnNS
163-
"proxy"
164-
"Could not find out which Kore log entries correspond to the SimplifyJson level"
165-
pure (const False)
166-
Just es -> pure (`elem` es)
160+
if Logger.LevelOther "SimplifyJson" `elem` customLevels
161+
then case Map.lookup (Logger.LevelOther "SimplifyJson") logLevelToKoreLogEntryMap of
162+
Nothing -> do
163+
Logger.logWarnNS
164+
"proxy"
165+
"Could not find out which Kore log entries correspond to the SimplifyJson level"
166+
pure (const False)
167+
Just koreSimplificationLogEntries -> pure (`elem` koreSimplificationLogEntries)
168+
else pure (const False)
167169

168170
let coLogLevel = fromMaybe Log.Info $ toSeverity logLevel
169171
koreLogOptions =

kore/src/Kore/Rewrite/SMT/Evaluator.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ retryWithScaledTimeout q = do
224224
retryOnceWithScaledTimeout :: MonadSMT m => m a -> Integer -> m a
225225
retryOnceWithScaledTimeout action scale =
226226
-- reinit with scaled timeout to override the original timeout
227-
SMT.localTimeOut (scaleTimeOut scale) $ SMT.reinit >> action
227+
SMT.reinit >> SMT.localTimeOut (scaleTimeOut scale) action
228228

229229
scaleTimeOut :: Integer -> SMT.TimeOut -> SMT.TimeOut
230230
scaleTimeOut _ (SMT.TimeOut Unlimited) = SMT.TimeOut Unlimited

0 commit comments

Comments
 (0)