Skip to content

Commit 3ffe20c

Browse files
author
Christine Zhou
committed
Remove feedback strategy stats dump in console
1 parent e49c17f commit 3ffe20c

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

Src/PChecker/CheckerCore/SystematicTesting/TestReport.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,12 @@ public string GetText(CheckerConfiguration checkerConfiguration, string prefix =
241241
totalExploredSchedules,
242242
totalExploredSchedules == 1 ? string.Empty : "s");
243243

244-
// Comment out this part until feedback strategy error is fixed
245-
// report.AppendLine();
246-
// report.AppendFormat(
247-
// "{0} Explored {1} timeline{2}",
248-
// prefix.Equals("...") ? "....." : prefix,
249-
// ExploredTimelines.Count,
250-
// ExploredTimelines.Count == 1 ? string.Empty : "s");
244+
report.AppendLine();
245+
report.AppendFormat(
246+
"{0} Explored {1} timeline{2}",
247+
prefix.Equals("...") ? "....." : prefix,
248+
ExploredTimelines.Count,
249+
ExploredTimelines.Count == 1 ? string.Empty : "s");
251250

252251
if (totalExploredSchedules > 0 &&
253252
NumOfFoundBugs > 0)

Src/PChecker/CheckerCore/SystematicTesting/TestingEngine.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,6 @@ private void RunNextIteration(int schedule)
644644
if (ShouldPrintIteration(schedule))
645645
{
646646
var seconds = watch.Elapsed.TotalSeconds;
647-
if (Strategy is IFeedbackGuidedStrategy s)
648-
{
649-
s.DumpStats(Logger);
650-
}
651647
}
652648

653649
if (!IsReplayModeEnabled && _checkerConfiguration.PerformFullExploration && runtime.Scheduler.BugFound)

Tst/CorrectLogs/bugs2/Main_0_0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
<StrategyLog> Found 1 bug.
1313
<StrategyLog> Scheduling statistics:
1414
<StrategyLog> Explored 1 schedule
15+
<StrategyLog> Explored 1 timeline
1516
<StrategyLog> Found 100.00% buggy schedules.
1617
<StrategyLog> Number of scheduling points in terminating schedules: 2 (min), 2 (avg), 2 (max).

0 commit comments

Comments
 (0)