Skip to content

Commit a3c18da

Browse files
committed
io-sim: don't print the same trace twice
1 parent 049db46 commit a3c18da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

io-sim/src/Control/Monad/IOSim.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,9 @@ exploreSimTraceST optsf main k =
558558
traceWithRaces <- IOSimPOR.controlSimTraceST (explorationStepTimelimit opts) control main
559559
(readRaces, trace0) <- detachTraceRacesST traceWithRaces
560560
(readSleeperST, trace) <- compareTracesST passingTrace trace0
561+
() <- traceDebugLog (explorationDebugLevel opts) traceWithRaces
561562
conjoinNoCatchST
562563
[ do sleeper <- readSleeperST
563-
() <- traceDebugLog (explorationDebugLevel opts) traceWithRaces
564564
prop <- k passingTrace trace
565565
return $ counterexample ("Schedule control: " ++ show control)
566566
$ counterexample
@@ -580,7 +580,6 @@ exploreSimTraceST optsf main k =
580580
-- node.
581581
races <- catMaybes
582582
<$> (readRaces >>= traverse (cachedST cacheRef) . take limit)
583-
() <- traceDebugLog (explorationDebugLevel opts) traceWithRaces
584583
let branching = length races
585584
-- tabulate "Races explored" (map show races) $
586585
tabulate "Branching factor" [bucket branching]

0 commit comments

Comments
 (0)