tmp
authoryu.dongliang <18588496441@163.com>
Thu, 13 Jul 2023 07:24:40 +0000 (15:24 +0800)
committeryu.dongliang <18588496441@163.com>
Thu, 13 Jul 2023 07:24:40 +0000 (15:24 +0800)
ses_layout.c

index f8aed0998454f97a6cc3b6c8061a45422654362d..fd1c468d55ba098dcea56a5651a9ca94014623ee 100644 (file)
@@ -169,12 +169,15 @@ int ses_lines_same_components(ScfEfunction* f)
 
        ec = NULL;
 
-       for (i = 0; i < f->n_elines - 1; i++) {
+       for (i = 0; i < f->n_elines; i++) {
                el0       = f->elines[i];
 
-               for (j = i + 1; j < f->n_elines; j++) {
+               for (j = 0; j < f->n_elines; j++) {
                        el1           = f->elines[j];
 
+                       if (el0 == el1)
+                               continue;
+
                        k0 = 0;
                        k1 = 0;