Commit d7ecb23e by Miodrag Milanovic

gcc 4.8 fix

parent f36724e3
...@@ -703,6 +703,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex, ...@@ -703,6 +703,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex,
int iPo = 0; int iPo = 0;
nFrames = -1; nFrames = -1;
int status = 0; int status = 0;
int i;
while ( fgets( Buffer, 1000, pFile ) != NULL ) while ( fgets( Buffer, 1000, pFile ) != NULL )
{ {
if ( Buffer[0] == '#' ) if ( Buffer[0] == '#' )
...@@ -750,7 +751,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex, ...@@ -750,7 +751,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex,
state = 2; state = 2;
break; break;
case 2 : case 2 :
for (int i=0; i<strlen(Buffer);i++) { for (i=0; i<strlen(Buffer);i++) {
char c = Buffer[i]; char c = Buffer[i];
if ( c == '0' || c == '1' ) if ( c == '0' || c == '1' )
Vec_IntPush( vNums, c - '0' ); Vec_IntPush( vNums, c - '0' );
...@@ -765,7 +766,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex, ...@@ -765,7 +766,7 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex,
state = 3; state = 3;
break; break;
default: default:
for (int i=0; i<strlen(Buffer);i++) { for (i=0; i<strlen(Buffer);i++) {
char c = Buffer[i]; char c = Buffer[i];
if ( c == '0' || c == '1' ) if ( c == '0' || c == '1' )
Vec_IntPush( vNums, c - '0' ); Vec_IntPush( vNums, c - '0' );
...@@ -782,7 +783,6 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex, ...@@ -782,7 +783,6 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex,
if (usedX) if (usedX)
printf( "Warning: Using 0 instead of x in latches or primary inputs\n" ); printf( "Warning: Using 0 instead of x in latches or primary inputs\n" );
int i;
Abc_Obj_t * pObj; Abc_Obj_t * pObj;
int iFrameCex = nFrames; int iFrameCex = nFrames;
int nRegsNtk = 0; int nRegsNtk = 0;
......
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