return 0;
}
-static int __ses_layout_lines3(ScfEfunction* f)
-{
- ScfEline* el;
- ses_vertex_t* v;
-
- scf_vector_t* graph = scf_vector_alloc();
- scf_vector_t* colors = scf_vector_alloc();
-
- intptr_t N = 2;
- intptr_t i;
- intptr_t j;
- intptr_t k;
-
- ses_lines_diff_components(f, graph);
-
- if (0 < graph->size) {
- v = graph->data[0];
-
- N = v->edges->size;
- }
-
- for (j = N; j >= 1; j--) {
-
- for (i = 1; i <= j; i++)
- scf_vector_add(colors, (void*)i);
-
- int ret = ses_graph_kcolor(graph, j, colors);
- if (ret < 0) {
- scf_loge("**********\n");
- }
-
- for (i = 0; i < graph->size; i++) {
- v = graph->data[i];
-
- if (v->color < 0) {
- el = v->data;
- scf_loge("j: %ld, i: %ld, l%ld->color: %ld\n", j, i, el->id, v->color);
- break;
- }
- }
-
- if (i < graph->size)
- break;
-
- for (i = 0; i < graph->size; i++) {
- v = graph->data[i];
-
- el = v->data;
- el->color = v->color;
- v->color = 0;
- }
-
- scf_vector_clear(colors, NULL);
- printf("\n");
- }
-
- k = 0;
- for (++j; j >= 1; j--) {
-
- for (i = 0; i < graph->size; i++) {
- v = graph->data[i];
-
- el = v->data;
-
- if (j == el->color) {
- scf_logi("j: %ld, l%ld->color: %ld\n", j, el->id, el->color);
-
- if (el == f->elines[k]) {
- k++;
- continue;
- }
-
- N = __ses_find_eline_index(f, el->id);
-
- SCF_XCHG(f->elines[k], f->elines[N]);
- k++;
- }
- }
- printf("\n");
- }
-
- for (i = 0; i < f->n_elines; i++) {
- el = f->elines[i];
-
- scf_logd("el: %ld, n_conns: %ld, n_pins: %ld, flags: %#lx\n", el->id, el->n_conns, el->n_pins, el->flags);
- }
-
- scf_vector_clear(graph, ( void (*)(void*) )ses_vertex_free);
- scf_vector_free(graph);
- scf_vector_free(colors);
-}
-
int epath_cmp_pins(const void* v0, const void* v1)
{
const ses_path_t* p0 = *(const ses_path_t**)v0;
bp = base->pins->data[base->pins->size - 1];
__n = __ses_find_eline_index(f, bp->lid);
- scf_logw("path: %d, __n: %ld, l%ld\n", path->index, __n, f->elines[__n]->id);
+ scf_logd("path: %d, __n: %ld, l%ld\n", path->index, __n, f->elines[__n]->id);
for (j = path->pins->size - 1; j >= 0; j--) {
p = path->pins->data[j];
- scf_logi("path: %d, c%ldp%ld, __n: %ld, l%ld\n", path->index, p->cid, p->id, __n, f->elines[__n]->id);
+ scf_logd("path: %d, c%ldp%ld, __n: %ld, l%ld\n", path->index, p->cid, p->id, __n, f->elines[__n]->id);
for (k = base->pins->size - 1; k >= 0; k--) {
bp = base->pins->data[k];
if (p->lid == bp->lid) {
__n = __ses_find_eline_index(f, bp->lid);
- scf_logw("__n: %ld, l%ld\n\n", __n, f->elines[__n]->id);
+ scf_logd("__n: %ld, l%ld\n\n", __n, f->elines[__n]->id);
break;
}
}
}
#endif
}
- printf("\n");
+// printf("\n");
}
static void __ses_layout_path(ScfEfunction* f, ses_path_t* path, ses_path_t* base)
}
}
- scf_logi("path: %d, ------------------------\n\n", base->index);
+ scf_logd("path: %d, ------------------------\n\n", base->index);
}
static int __ses_layout_lines4(ScfEfunction* f)