File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -1326,18 +1326,19 @@ bool BLIF_file::createNodes() noexcept {
1326
1326
int BLIF_file::BNode::in_contact (const string& x) const noexcept {
1327
1327
if (x.empty () or data_.empty ()) return -1 ;
1328
1328
size_t dsz = data_.size ();
1329
- if (dsz == 1 ) return x == data_. front ();
1330
- for ( size_t i = 0 ; i < dsz - 1 ; i++) {
1331
- assert ( not data_[i]. empty () );
1332
- CStr cs = data_[i]. c_str ();
1333
- CStr p = :: strrchr (cs, ' = ' ) ;
1334
- if (p)
1335
- p++;
1336
- else
1337
- p = cs ;
1338
- if (x == p) // compare the part afer '='
1329
+ if (dsz == 1 )
1330
+ return x == data_. front ();
1331
+ size_t ssz =inSigs_. size ( );
1332
+ if (!ssz)
1333
+ return - 1 ;
1334
+ assert (ssz < dsz);
1335
+ for ( size_t i = 0 ; i < ssz; i++) {
1336
+ const string& sig = inSigs_[i];
1337
+ assert ( not sig. empty ()) ;
1338
+ if (x == sig)
1339
1339
return i;
1340
1340
}
1341
+
1341
1342
return -1 ;
1342
1343
}
1343
1344
Original file line number Diff line number Diff line change 1
- static const char * _pln_VERSION_STR = " pln0341 " ;
1
+ static const char * _pln_VERSION_STR = " pln0342 " ;
2
2
3
3
#include " RS/rsEnv.h"
4
4
#include " util/pln_log.h"
You can’t perform that action at this time.
0 commit comments