Commit 8ad3d6be by Alan Mishchenko

Bug fixes by Clifford Wolf.

parent a2813847
...@@ -75,6 +75,7 @@ If_LibLut_t * If_LibLutRead( char * FileName ) ...@@ -75,6 +75,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
Abc_Print( 1, "Error in the LUT library file \"%s\".\n", FileName ); Abc_Print( 1, "Error in the LUT library file \"%s\".\n", FileName );
ABC_FREE( p->pName ); ABC_FREE( p->pName );
ABC_FREE( p ); ABC_FREE( p );
fclose( pFile );
return NULL; return NULL;
} }
...@@ -93,6 +94,7 @@ If_LibLut_t * If_LibLutRead( char * FileName ) ...@@ -93,6 +94,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
ABC_FREE( p->pName ); ABC_FREE( p->pName );
ABC_FREE( p ); ABC_FREE( p );
Abc_Print( 1, "LUT %d has too many pins (%d). Max allowed is %d.\n", i, k, i ); Abc_Print( 1, "LUT %d has too many pins (%d). Max allowed is %d.\n", i, k, i );
fclose( pFile );
return NULL; return NULL;
} }
...@@ -105,6 +107,7 @@ If_LibLut_t * If_LibLutRead( char * FileName ) ...@@ -105,6 +107,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
ABC_FREE( p->pName ); ABC_FREE( p->pName );
ABC_FREE( p ); ABC_FREE( p );
Abc_Print( 1, "Skipping LUTs of size more than %d.\n", i ); Abc_Print( 1, "Skipping LUTs of size more than %d.\n", i );
fclose( pFile );
return NULL; return NULL;
} }
i++; i++;
...@@ -136,6 +139,7 @@ If_LibLut_t * If_LibLutRead( char * FileName ) ...@@ -136,6 +139,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
} }
} }
fclose( pFile );
return p; return p;
} }
......
...@@ -44,7 +44,7 @@ ABC_NAMESPACE_IMPL_START ...@@ -44,7 +44,7 @@ ABC_NAMESPACE_IMPL_START
***********************************************************************/ ***********************************************************************/
void Sbd_PrintCnf( Vec_Str_t * vCnf ) void Sbd_PrintCnf( Vec_Str_t * vCnf )
{ {
char Entry; signed char Entry;
int i, Lit; int i, Lit;
Vec_StrForEachEntry( vCnf, Entry, i ) Vec_StrForEachEntry( vCnf, Entry, i )
{ {
...@@ -121,7 +121,7 @@ int Sbd_TruthToCnf( word Truth, int nVars, Vec_Int_t * vCover, Vec_Str_t * vCnf ...@@ -121,7 +121,7 @@ int Sbd_TruthToCnf( word Truth, int nVars, Vec_Int_t * vCover, Vec_Str_t * vCnf
void Sbd_TranslateCnf( Vec_Wec_t * vRes, Vec_Str_t * vCnf, Vec_Int_t * vFaninMap, int iPivotVar ) void Sbd_TranslateCnf( Vec_Wec_t * vRes, Vec_Str_t * vCnf, Vec_Int_t * vFaninMap, int iPivotVar )
{ {
Vec_Int_t * vClause; Vec_Int_t * vClause;
char Entry; signed char Entry;
int i, Lit; int i, Lit;
Vec_WecClear( vRes ); Vec_WecClear( vRes );
vClause = Vec_WecPushLevel( vRes ); vClause = Vec_WecPushLevel( vRes );
......
...@@ -45,7 +45,7 @@ ABC_NAMESPACE_IMPL_START ...@@ -45,7 +45,7 @@ ABC_NAMESPACE_IMPL_START
***********************************************************************/ ***********************************************************************/
void Sfm_PrintCnf( Vec_Str_t * vCnf ) void Sfm_PrintCnf( Vec_Str_t * vCnf )
{ {
char Entry; signed char Entry;
int i, Lit; int i, Lit;
Vec_StrForEachEntry( vCnf, Entry, i ) Vec_StrForEachEntry( vCnf, Entry, i )
{ {
...@@ -153,7 +153,7 @@ Vec_Wec_t * Sfm_CreateCnf( Sfm_Ntk_t * p ) ...@@ -153,7 +153,7 @@ Vec_Wec_t * Sfm_CreateCnf( Sfm_Ntk_t * p )
void Sfm_TranslateCnf( Vec_Wec_t * vRes, Vec_Str_t * vCnf, Vec_Int_t * vFaninMap, int iPivotVar ) void Sfm_TranslateCnf( Vec_Wec_t * vRes, Vec_Str_t * vCnf, Vec_Int_t * vFaninMap, int iPivotVar )
{ {
Vec_Int_t * vClause; Vec_Int_t * vClause;
char Entry; signed char Entry;
int i, Lit; int i, Lit;
Vec_WecClear( vRes ); Vec_WecClear( vRes );
vClause = Vec_WecPushLevel( vRes ); vClause = Vec_WecPushLevel( vRes );
......
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