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);
}
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);
}
int x1 = 0;
- N = j + 1;
+ N = j;
for (j = 1; j <= N; j++) {
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;