Adding Psalm analysis

This commit is contained in:
2023-08-03 14:26:00 +00:00
parent 3e42b48003
commit 0e1947ca3a
6 changed files with 1975 additions and 18 deletions

View File

@ -11,11 +11,9 @@ class ScheduleLoop extends Schedule
public function visit(int $depth = -1, int $maxDepth = 0): float
{
$totalIterations = 1;
$delta = $this->scheduleToLoop->visit($depth + 1, $maxDepth);
while ($delta > $this->maxDelta) {
$delta = $this->scheduleToLoop->visit($depth + 1, $maxDepth);
$totalIterations++;
}
return $delta;