| @@ 490-495 (lines=6) @@ | ||
| 487 | } |
|
| 488 | $matches = $ymatches[$line]; |
|
| 489 | foreach ($matches as $y) { |
|
| 490 | if (empty($this->in_seq[$y])) { |
|
| 491 | $k = $this->_lcsPos($y); |
|
| 492 | assert($k > 0); |
|
| 493 | $ymids[$k] = $ymids[$k - 1]; |
|
| 494 | break; |
|
| 495 | } |
|
| 496 | } |
|
| 497 | ||
| 498 | while (list($junk, $y) = each($matches)) { |
|
| @@ 506-510 (lines=5) @@ | ||
| 503 | $this->in_seq[$this->seq[$k]] = false; |
|
| 504 | $this->seq[$k] = $y; |
|
| 505 | $this->in_seq[$y] = 1; |
|
| 506 | } elseif (empty($this->in_seq[$y])) { |
|
| 507 | $k = $this->_lcsPos($y); |
|
| 508 | assert($k > 0); |
|
| 509 | $ymids[$k] = $ymids[$k - 1]; |
|
| 510 | } |
|
| 511 | } |
|
| 512 | } |
|
| 513 | } |
|