From: yu.dongliang <18588496441@163.com> Date: Sat, 4 Nov 2023 05:20:21 +0000 (+0800) Subject: __ses_layout_lines2(): close logs X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=c513e253ac056d61090800d2b8d20a85abba1159;p=ses.git __ses_layout_lines2(): close logs --- diff --git a/ses_layout.c b/ses_layout.c index fcb6f0f..b84b174 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -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);