mirror of https://github.com/KLayout/klayout.git
Fixed some small issues in the netlist compare
This commit is contained in:
parent
ef66becfdb
commit
9a69d106fd
|
|
@ -3043,14 +3043,12 @@ NetlistComparer::do_device_assignment (const db::Circuit *c1, const db::NetGraph
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == unmatched_a.end () && j == unmatched_b.end ()) {
|
if (i == unmatched_a.end () || j == unmatched_b.end ()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
unmatched_list::iterator ii = i, jj = j;
|
unmatched_list::iterator ii = i, jj = j;
|
||||||
++i, ++j;
|
++i, ++j;
|
||||||
size_t n = ii->first.size ();
|
|
||||||
tl_assert (n == jj->first.size ());
|
|
||||||
|
|
||||||
while (i != unmatched_a.end () && cmp.equals (*i, *ii)) {
|
while (i != unmatched_a.end () && cmp.equals (*i, *ii)) {
|
||||||
++i;
|
++i;
|
||||||
|
|
@ -3211,7 +3209,7 @@ NetlistComparer::do_subcircuit_assignment (const db::Circuit *c1, const db::NetG
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == unmatched_a.end () && j == unmatched_b.end ()) {
|
if (i == unmatched_a.end () || j == unmatched_b.end ()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue