From 86a7baa4639d0b0dc09f1487f6b6f962eab69d73 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Tue, 14 Nov 2023 14:27:03 +0800 Subject: [PATCH] fix: __topo_path_bridges() --- ses_step_topo.c | 9 +++++++-- ses_steps.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ses_step_topo.c b/ses_step_topo.c index af5a4bd..87b42ef 100644 --- a/ses_step_topo.c +++ b/ses_step_topo.c @@ -207,6 +207,11 @@ static int __topo_path_bridges(ScfEfunction* f, ses_path_t* path) for (j = i + 1; j < path->childs->size; ) { sp1 = path->childs->data[j]; + if (sp0->parent_p1 <= sp1->parent_p0 || sp0->parent_p0 >= sp1->parent_p1) { + j++; + continue; + } + if (sp0->parent_p0 <= sp1->parent_p0 && sp0->parent_p1 >= sp1->parent_p1) { j++; continue; @@ -891,11 +896,11 @@ static int _topo_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_ctx_t* int ret = _topo_paths(f, el, ctx->paths); if (ret < 0) return ret; - +#if 1 ret = _topo_path_completes(f, ctx->paths); if (ret < 0) return ret; - +#endif for (i = 0; i < ctx->paths->size; i++) { path = ctx->paths->data[i]; diff --git a/ses_steps.c b/ses_steps.c index 204bbab..044cbc9 100644 --- a/ses_steps.c +++ b/ses_steps.c @@ -144,7 +144,7 @@ int ses_steps_analyse(ScfEfunction* f, int64_t ns, int64_t count) return ret; int j; - for (j = 0; j < 1; j++) { + for (j = 0; j < 3; j++) { printf("\n\033[33m%s(), %d(), j: %d\033[0m\n", __func__, __LINE__, j); ret = __ses_steps_analyse(f, ns, i, ctx); -- 2.25.1