@@ 362-367 (lines=6) @@ | ||
359 | ||
360 | $maxAux->index = $this->context->countAux; |
|
361 | ||
362 | for ($j = 0; $j < $maxAux->preImage->length; $j++) { |
|
363 | $cl = $maxAux->preImage->classes[$j]; |
|
364 | if (Utils::eqRow($this->context->classAction[$cl], $maxAux->table, $this->context->countTerminals)) { |
|
365 | $maxAux->index = $cl; |
|
366 | } |
|
367 | } |
|
368 | ||
369 | if ($maxAux->index >= $this->context->countAux) { |
|
370 | $this->context->classAction[$this->context->countAux++] = $maxAux->table; |
|
@@ 373-378 (lines=6) @@ | ||
370 | $this->context->classAction[$this->context->countAux++] = $maxAux->table; |
|
371 | } |
|
372 | ||
373 | for ($j = 0; $j < $maxAux->preImage->length; $j++) { |
|
374 | $cl = $maxAux->preImage->classes[$j]; |
|
375 | if ($this->context->class2nd[$cl] < 0) { |
|
376 | $this->context->class2nd[$cl] = $maxAux->index; |
|
377 | } |
|
378 | } |
|
379 | ||
380 | if ($this->context->debug) { |
|
381 | $this->context->debug(\sprintf('Selected aux[%d]: (%d) ', $maxAux->index, $maxAux->gain)); |