__topo_path_bridges()
authoryu.dongliang <18588496441@163.com>
Sat, 21 Oct 2023 06:34:28 +0000 (14:34 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 21 Oct 2023 06:34:28 +0000 (14:34 +0800)
ses_step_topo.c
ses_utils.c

index cd9b17540a7b879fea0e7bd2b540f7bee75515fb..e336659057c302d28c66f086990efcf596ffa685 100644 (file)
@@ -200,7 +200,7 @@ static int __topo_path_bridges(ScfEfunction* f, ses_path_t* path)
                sp0       = path->childs->data[i];
 
                for (j = i + 1; j < path->childs->size; ) {
-                       sp1           = path->childs->data[i];
+                       sp1           = path->childs->data[j];
 
                        if (sp0->parent_p0 <= sp1->parent_p0 && sp0->parent_p1 >= sp1->parent_p1) {
                                j++;
@@ -255,7 +255,7 @@ bridge_sp0:
        for (i = 0; i < path->bridges->size; i++) {
                sp0       = path->bridges->data[i];
 
-               scf_logw("path: %d, i: %d, bridge: %d\n", path->index, i, sp0->index);
+               scf_loge("path: %d, i: %d, bridge: %d\n", path->index, i, sp0->index);
        }
 
        if (path->bridges->size <= 0) {
index 0e58df158a76003477f59f83262b974fcce0c563..d65442fe60940b2fcd09c495ce2d73474e9c0dd1 100644 (file)
@@ -360,7 +360,7 @@ void ses_path_print(ses_path_t* path)
                for (i = 0; i < path->bridges->size; i++) {
                        path2     = path->bridges->data[i];
 
-                       printf("\033[32mbridge: %d, n_diodes: %d, parent: %d, \033[0m", path2->index, path2->n_diodes, path->index);
+                       printf("\033[33mbridge: %d, n_diodes: %d, parent: %d, \033[0m", path2->index, path2->n_diodes, path->index);
 
                        ses_path_print(path2);
                }