Skip to content

Commit e49c17f

Browse files
Fix feedback strategy pct (#830)
1 parent 44c806c commit e49c17f

File tree

1 file changed

+4
-0
lines changed
  • Src/PChecker/CheckerCore/SystematicTesting/Strategies/Feedback

1 file changed

+4
-0
lines changed

Src/PChecker/CheckerCore/SystematicTesting/Strategies/Feedback/PCTScheduler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ private void PreparePriorityChangePoints(int step)
209209
int index = _randomValueGenerator.Next(listOfInts.Count);
210210
PriorityChangePoints.Add(listOfInts[index]);
211211
listOfInts.RemoveAt(index);
212+
if (listOfInts.Count == 0)
213+
{
214+
break;
215+
}
212216
}
213217
}
214218

0 commit comments

Comments
 (0)