fixed a bug in subcircuit library with cells that have connections to itself

This commit is contained in:
Clifford Wolf 2014-02-09 15:27:58 +01:00
parent 38469e7686
commit d229324420
1 changed files with 4 additions and 1 deletions

View File

@ -1064,7 +1064,10 @@ class SubCircuit::SolverWorker
assert(haystack.adjMatrix.at(j).count(haystackNeighbour) > 0);
int haystackEdgeType = haystack.adjMatrix.at(j).at(haystackNeighbour);
for (const auto &otherCandidate : portmapCandidates[needleNeighbour]) {
std::set<std::map<std::string, std::string>> &candidates =
i == needleNeighbour ? thisCandidates : portmapCandidates[needleNeighbour];
for (const auto &otherCandidate : candidates) {
if (diCache.compare(needleEdgeType, haystackEdgeType, testCandidate, otherCandidate))
goto found_match;
}