Allowing for Verilog names of the type slash-<name>-space-[N].

This commit is contained in:
Alan Mishchenko 2013-02-22 13:49:07 -08:00
parent 91ca83e864
commit 2e14b73af6
1 changed files with 8 additions and 2 deletions

View File

@ -359,9 +359,15 @@ int Abc_NamStrFind( Abc_Nam_t * p, char * pStr )
***********************************************************************/
int Abc_NamStrFindOrAdd( Abc_Nam_t * p, char * pStr, int * pfFound )
{
int iHandleNew;
int i, iHandleNew;
int *piPlace;
assert( pStr[0] != '\\' || pStr[strlen(pStr)-1] == ' ' );
if ( !(pStr[0] != '\\' || pStr[strlen(pStr)-1] == ' ') )
{
for ( i = strlen(pStr) - 1; i >= 0; i-- )
if ( *pStr == ' ' )
break;
assert( i < (int)strlen(pStr) );
}
piPlace = Abc_NamStrHashFind( p, pStr );
if ( *piPlace )
{