int j;
int k;
+ int n = 0;
p = path->pins->data[i];
int ret = __ses_path_va(f, child);
if (ret < 0)
return ret;
+
+ n++;
}
- return 0;
+ return n;
}
static int __ses_path_split_v(ScfEfunction* f, ses_path_t* path, ScfEpin* p0, int i, double a, double ja)
ses_ir_u(&v, &jv, a, ja, r, jr);
- scf_logd("c%ldp%ld, a: %lg + j%lg, r: %lg + j%lg, v: %lg + j%lg\n", p->cid, p->id, a, ja, r, jr, v, jv);
+ scf_logd("c%ldp%ld, c%ldp%ld, a: %lg + j%lg, r: %lg + j%lg, v: %lg + j%lg\n", p0->cid, p0->id, p->cid, p->id, a, ja, r, jr, v, jv);
}
p->v = p0->v - v;
if (ret < 0)
return ret;
- p0 = p;
+ if (ret > 0) {
+ p0 = p;
+ scf_logd("i: %d, p0: c%ldp%ld\n", i, p0->cid, p0->id);
+ }
} else {
int ret = __ses_path_split_v(f, path, p0, i, a, ja);