c = f->components[el->pins[j]];
p = c->pins [el->pins[j + 1]];
- if (p->pflag && p != np && *ppath) {
- scf_logd("branch: c%ld_p%ld, l%ld\n", c->id, p->id, el->id);
+ if (p->pflag) {
- if ((*ppath)->pins->size > 0) {
- if (scf_vector_add(__paths, *ppath) < 0)
- return -ENOMEM;
+ if (p != np && *ppath) {
+ scf_logd("branch: c%ld_p%ld, l%ld\n", c->id, p->id, el->id);
+
+ if ((*ppath)->pins->size > 0) {
+ if (scf_vector_add(__paths, *ppath) < 0)
+ return -ENOMEM;
- for (k = 0; k < (*ppath)->pins->size; k++) {
- p = (*ppath)->pins->data[k];
- p->pflag = 1;
- p->path = (uintptr_t)*ppath;
- }
- } else
- ses_path_free(*ppath);
+ for (k = 0; k < (*ppath)->pins->size; k++) {
+ p = (*ppath)->pins->data[k];
+ p->pflag = 1;
+ p->path = (uintptr_t)*ppath;
+ }
+ } else
+ ses_path_free(*ppath);
- *ppath = NULL;
+ *ppath = NULL;
+ }
continue;
}