From: yu.dongliang <18588496441@163.com> Date: Thu, 9 Nov 2023 18:19:55 +0000 (+0800) Subject: tmp X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=ffd007648e179df449e22f2a4ce3d590cdd7a9fe;p=ses.git tmp --- diff --git a/ses_layout.c b/ses_layout.c index 41a30bf..c10ad17 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -736,7 +736,7 @@ static int __ses_layout_lines2(ScfEfunction* f) if (cflag && ib < f->n_elines) { el1 = f->elines[ib]; - eline_mov_before(f, ib, i); + eline_mov_after(f, ib, i); scf_logi("mov el%ld [%ld] <--> [%ld] el%ld\n", el0->id, i, ib, el1->id); } @@ -1169,27 +1169,25 @@ static int __ses_de_cross(ScfEfunction* f, int d) scf_loge("**********\n"); } + int n = 0; + for (i = 0; i < graph->size; i++) { v = graph->data[i]; + c = v->data; + if (v->color < 0) { - c = v->data; + c->color = j; + n++; scf_loge("j: %ld, i: %ld, c%ld->color: %ld\n", j, i, c->id, v->color); - break; - } + } else + c->color = v->color; + v->color = 0; } - if (i < graph->size) + if (n > 0) break; - for (i = 0; i < graph->size; i++) { - v = graph->data[i]; - - c = v->data; - c->color = v->color; - v->color = 0; - } - scf_vector_clear(colors, NULL); } @@ -1201,7 +1199,7 @@ static int __ses_de_cross(ScfEfunction* f, int d) int x1 = 0; - N = j + 1; + N = j; for (j = 1; j <= N; j++) { @@ -1253,7 +1251,7 @@ static int __ses_de_cross(ScfEfunction* f, int d) for (i = 0; i < f->n_components; i++) { c = f->components[i]; - scf_logd("N: %ld, i: %ld, c%ld->color: %ld\n", N, i, c->id, c->color); + scf_logi("N: %ld, i: %ld, c%ld->color: %ld\n", N, i, c->id, c->color); } return 0;