Commit 43a15df9 by Miodrag Milanovic

Fix for unhandled aiw file commands

parent b29e8a77
...@@ -712,7 +712,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex, ...@@ -712,7 +712,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex,
Buffer = ABC_ALLOC( char, MaxLine ); Buffer = ABC_ALLOC( char, MaxLine );
while ( fgets( Buffer, MaxLine, pFile ) != NULL ) while ( fgets( Buffer, MaxLine, pFile ) != NULL )
{ {
if ( Buffer[0] == '#' ) if ( Buffer[0] == '#' || Buffer[0] == 'c' || Buffer[0] == 'f' || Buffer[0] == 'u' )
continue; continue;
Buffer[strlen(Buffer) - 1] = '\0'; Buffer[strlen(Buffer) - 1] = '\0';
if (state==0 && strlen(Buffer)>1) { if (state==0 && strlen(Buffer)>1) {
...@@ -722,7 +722,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex, ...@@ -722,7 +722,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex,
iPo = 0; iPo = 0;
status = 1; status = 1;
} }
if (state==1 && Buffer[0]!='b' && Buffer[0]!='c') { if (state==1 && Buffer[0]!='b' && Buffer[0]!='j') {
// old format detected, first line was actually register // old format detected, first line was actually register
*fOldFormat = 1; *fOldFormat = 1;
state = 3; state = 3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment