From b74cbe1ecb6ec0ce1f0a88f641895385a6e519d6 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Tue, 18 Jul 2023 17:37:34 +0800 Subject: [PATCH] scf_eda.proto --- scf_eda.pb-c.c | 19 ++++++++++++++++--- scf_eda.pb-c.h | 3 ++- scf_eda.proto | 1 + ses_loop.c | 2 +- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/scf_eda.pb-c.c b/scf_eda.pb-c.c index 045444b..fccdbe6 100644 --- a/scf_eda.pb-c.c +++ b/scf_eda.pb-c.c @@ -578,7 +578,7 @@ const ProtobufCMessageDescriptor scf_econn__descriptor = (ProtobufCMessageInit) scf_econn__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor scf_eline__field_descriptors[5] = +static const ProtobufCFieldDescriptor scf_eline__field_descriptors[6] = { { "id", @@ -640,6 +640,18 @@ static const ProtobufCFieldDescriptor scf_eline__field_descriptors[5] = 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, + { + "vflag", + 6, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(ScfEline, vflag), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, }; static const unsigned scf_eline__field_indices_by_name[] = { 3, /* field[3] = conns */ @@ -647,11 +659,12 @@ static const unsigned scf_eline__field_indices_by_name[] = { 0, /* field[0] = id */ 4, /* field[4] = lines */ 1, /* field[1] = pins */ + 5, /* field[5] = vflag */ }; static const ProtobufCIntRange scf_eline__number_ranges[1 + 1] = { { 1, 0 }, - { 0, 5 } + { 0, 6 } }; const ProtobufCMessageDescriptor scf_eline__descriptor = { @@ -661,7 +674,7 @@ const ProtobufCMessageDescriptor scf_eline__descriptor = "ScfEline", "", sizeof(ScfEline), - 5, + 6, scf_eline__field_descriptors, scf_eline__field_indices_by_name, 1, scf_eline__number_ranges, diff --git a/scf_eda.pb-c.h b/scf_eda.pb-c.h index 6a69624..15b3352 100644 --- a/scf_eda.pb-c.h +++ b/scf_eda.pb-c.h @@ -84,10 +84,11 @@ struct _ScfEline ScfEconn **conns; size_t n_lines; ScfLine **lines; + protobuf_c_boolean vflag; }; #define SCF_ELINE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&scf_eline__descriptor) \ - , 0, 0,NULL, 0, 0,NULL, 0,NULL } + , 0, 0,NULL, 0, 0,NULL, 0,NULL, 0 } struct _ScfEcomponent diff --git a/scf_eda.proto b/scf_eda.proto index f249abc..420fa1c 100644 --- a/scf_eda.proto +++ b/scf_eda.proto @@ -35,6 +35,7 @@ message scf_eline required uint64 flags = 3; repeated scf_econn conns = 4; repeated scf_line lines = 5; + required bool vflag = 6; } message scf_ecomponent diff --git a/ses_loop.c b/ses_loop.c index 607af4d..aea5e6c 100644 --- a/ses_loop.c +++ b/ses_loop.c @@ -41,7 +41,7 @@ static int __ses_dfs_tree(ScfEfunction* f, ScfEcomponent* root, scf_vector_t* ed c->vflag = 1; p->vflag = 1; - scf_loge("c%ld_p%ld --> c%ld_p%ld\n", root->id, rp->id, c->id, p->id); + scf_loge("c%ld_p%ld -- l%ld --> c%ld_p%ld\n", root->id, rp->id, rp->lid, c->id, p->id); int ret = scf_vector_add(edges, e); if ( ret < 0) -- 2.25.1