When comparing instance counts to determine is flattening makes a better match,

flatten cells that have no instances in common.
Display a screen message to indicate a re-compare afterr flattening.
This commit is contained in:
D. Mitch Bailey 2021-10-28 01:29:32 -07:00
parent 4c4bad08f2
commit 12fa080212
2 changed files with 3 additions and 1 deletions

View File

@ -1582,7 +1582,8 @@ PrematchLists(char *name1, int file1, char *name2, int file2)
}
}
else {
match = 0;
// cell exists in one circuit but not the other, so flatten it.
// match = 0;
break;
}
}

View File

@ -2194,6 +2194,7 @@ _netcmp_compare(ClientData clientData,
CreateTwoLists(name1, fnum1, name2, fnum2, dolist);
while (PrematchLists(name1, fnum1, name2, fnum2) > 0) {
Fprintf(stdout, "Making another compare attempt.\n");
Printf("Flattened mismatched instances and attempting compare again.\n");
CreateTwoLists(name1, fnum1, name2, fnum2, dolist);
}