__ses_layout_lines2(): close logs
authoryu.dongliang <18588496441@163.com>
Sat, 4 Nov 2023 05:20:21 +0000 (13:20 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 4 Nov 2023 05:20:41 +0000 (13:20 +0800)
ses_layout.c

index fcb6f0f364e5ab61a6c7b31e4261d6a0a9d7239a..b84b17452246a0915e3f2552b28c8439444a1a70 100644 (file)
@@ -343,7 +343,7 @@ int ses_lines_same_components(ScfEfunction* f)
        return 0;
 }
 
-int ses_lines_no_components(ScfEfunction* f, ses_graph_t* graph)
+int ses_lines_diff_components(ScfEfunction* f, ses_graph_t* graph)
 {
        if (!f || !graph)
                return -EINVAL;
@@ -421,7 +421,7 @@ static int __ses_layout_lines3(ScfEfunction* f)
        intptr_t j;
 
        scf_loge("\n");
-       ses_lines_no_components(f, graph);
+       ses_lines_diff_components(f, graph);
 
        if (0  < graph->size) {
                v  = graph->data[0];
@@ -468,7 +468,7 @@ static int __ses_layout_lines3(ScfEfunction* f)
                v         = graph->data[i];
 
                el = v->data;
-               scf_loge("i: %ld, l%ld->color: %ld\n", i, el->id, el->color);
+               scf_logi("j: %ld, i: %ld, l%ld->color: %ld\n", j, i, el->id, el->color);
        }
 
        scf_vector_clear(graph, ( void (*)(void*) )ses_vertex_free);
@@ -491,6 +491,8 @@ static int __ses_layout_lines2(ScfEfunction* f)
        if (f->n_elines <= 2)
                return 0;
 
+       __ses_layout_lines3(f);
+
        size_t m;
        size_t n;
 
@@ -621,11 +623,15 @@ static int __ses_layout_lines2(ScfEfunction* f)
        }
 #endif
 
-#if 1
        for (i = 0; i < f->n_elines; i++) {
                el0       = f->elines[i];
 
                el0->n_lines = 0;
+       }
+
+#if 0
+       for (i = 0; i < f->n_elines; i++) {
+               el0       = f->elines[i];
 
                scf_logw("el0: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", el0->id, el0->n_conns, el0->n_pins, el0->flags);
 
@@ -1449,7 +1455,7 @@ int ses_layout_function(ScfEfunction* f, int d)
 
        qsort(f->elines, f->n_elines, sizeof(ScfEline*), eline_cmp_id);
 
-       ses_cross(f, d);
+//     ses_cross(f, d);
 
        __ses_de_cross(f, d);