Commit 9ae898d
rsz: avoid double-decrementing num_viols in LastGasp
Previously, when an endpoint met the slack margin inside the `better`
branch of the LastGasp pass loop, `--num_viols` ran but the loop did
not break. The next pass's start-of-loop margin check then decremented
`num_viols` a second time for the same endpoint.
Break the inner loop right after the in-`better` decrement to avoid
recounting. Mirrors the existing structure of the start-of-loop check.
Signed-off-by: Minju Kim <mkim@precisioninno.com>1 parent f1105af commit 9ae898d
3 files changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3013 | 3013 | | |
3014 | 3014 | | |
3015 | 3015 | | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
3016 | 3019 | | |
3017 | 3020 | | |
3018 | 3021 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| 14 | + | |
0 commit comments