#include"ses_core.h"
+static int _ses_path_cmp(const void* v0, const void* v1)
+{
+ const ses_path_t* p0 = *(const ses_path_t**)v0;
+ const ses_path_t* p1 = *(const ses_path_t**)v1;
+
+ if (p0->pins->size > p1->pins->size)
+ return -1;
+
+ if (p0->pins->size < p1->pins->size)
+ return 1;
+
+ return 0;
+}
+
static int __dfs_path(ScfEfunction* f, ScfEcomponent* rc, ScfEpin* rp, ses_ctx_t* ctx, ses_path_t** ppath)
{
ScfEcomponent* c;
path = NULL;
}
+ scf_vector_qsort(ctx->paths, _ses_path_cmp);
+
#if 1
for (i = 0; i < ctx->paths->size; i++) {
path = ctx->paths->data[i];