Commit 460167ec by Alan Mishchenko

Compiler warnings.

parent 5c9983d0
...@@ -1256,10 +1256,10 @@ void Jf_ManComputeCuts( Jf_Man_t * p, int fEdge ) ...@@ -1256,10 +1256,10 @@ void Jf_ManComputeCuts( Jf_Man_t * p, int fEdge )
} }
if ( p->pPars->fVerbose ) if ( p->pPars->fVerbose )
{ {
printf( "CutPair = %lu ", p->CutCount[0] ); printf( "CutPair = %lu ", (long)p->CutCount[0] );
printf( "Merge = %lu ", p->CutCount[1] ); printf( "Merge = %lu ", (long)p->CutCount[1] );
printf( "Eval = %lu ", p->CutCount[2] ); printf( "Eval = %lu ", (long)p->CutCount[2] );
printf( "Cut = %lu ", p->CutCount[3] ); printf( "Cut = %lu ", (long)p->CutCount[3] );
Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart ); Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart );
printf( "Memory: " ); printf( "Memory: " );
printf( "Gia = %.2f MB ", Gia_ManMemory(p->pGia) / (1<<20) ); printf( "Gia = %.2f MB ", Gia_ManMemory(p->pGia) / (1<<20) );
...@@ -1702,11 +1702,11 @@ void Jf_ManPrintStats( Jf_Man_t * p, char * pTitle ) ...@@ -1702,11 +1702,11 @@ void Jf_ManPrintStats( Jf_Man_t * p, char * pTitle )
if ( !p->pPars->fVerbose ) if ( !p->pPars->fVerbose )
return; return;
printf( "%s : ", pTitle ); printf( "%s : ", pTitle );
printf( "Level =%6lu ", p->pPars->Delay ); printf( "Level =%6lu ", (long)p->pPars->Delay );
printf( "Area =%9lu ", p->pPars->Area ); printf( "Area =%9lu ", (long)p->pPars->Area );
printf( "Edge =%9lu ", p->pPars->Edge ); printf( "Edge =%9lu ", (long)p->pPars->Edge );
if ( p->pPars->fGenCnf ) if ( p->pPars->fGenCnf )
printf( "Cnf =%9lu ", p->pPars->Clause ); printf( "Cnf =%9lu ", (long)p->pPars->Clause );
Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart ); Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart );
fflush( stdout ); fflush( stdout );
} }
......
...@@ -1125,9 +1125,9 @@ void Kf_ManPrintStats( Kf_Man_t * p, char * pTitle ) ...@@ -1125,9 +1125,9 @@ void Kf_ManPrintStats( Kf_Man_t * p, char * pTitle )
if ( !p->pPars->fVerbose ) if ( !p->pPars->fVerbose )
return; return;
printf( "%s : ", pTitle ); printf( "%s : ", pTitle );
printf( "Level =%6lu ", p->pPars->Delay ); printf( "Level =%6lu ", (long)p->pPars->Delay );
printf( "Area =%9lu ", p->pPars->Area ); printf( "Area =%9lu ", (long)p->pPars->Area );
printf( "Edge =%9lu ", p->pPars->Edge ); printf( "Edge =%9lu ", (long)p->pPars->Edge );
Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart ); Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart );
fflush( stdout ); fflush( stdout );
} }
...@@ -1173,10 +1173,10 @@ void Kf_ManComputeMapping( Kf_Man_t * p ) ...@@ -1173,10 +1173,10 @@ void Kf_ManComputeMapping( Kf_Man_t * p )
Kf_ManComputeRefs( p ); Kf_ManComputeRefs( p );
if ( p->pPars->fVerbose ) if ( p->pPars->fVerbose )
{ {
printf( "CutPair = %lu ", p->pSett->CutCount[0] ); printf( "CutPair = %lu ", (long)p->pSett->CutCount[0] );
printf( "Merge = %lu ", p->pSett->CutCount[1] ); printf( "Merge = %lu ", (long)p->pSett->CutCount[1] );
printf( "Eval = %lu ", p->pSett->CutCount[2] ); printf( "Eval = %lu ", (long)p->pSett->CutCount[2] );
printf( "Cut = %lu ", p->pSett->CutCount[3] ); printf( "Cut = %lu ", (long)p->pSett->CutCount[3] );
Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart ); Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart );
printf( "Memory: " ); printf( "Memory: " );
printf( "Gia = %.2f MB ", Gia_ManMemory(p->pGia) / (1<<20) ); printf( "Gia = %.2f MB ", Gia_ManMemory(p->pGia) / (1<<20) );
......
...@@ -2012,14 +2012,14 @@ void Lf_ManPrintStats( Lf_Man_t * p, char * pTitle ) ...@@ -2012,14 +2012,14 @@ void Lf_ManPrintStats( Lf_Man_t * p, char * pTitle )
if ( !p->pPars->fVerbose ) if ( !p->pPars->fVerbose )
return; return;
printf( "%s : ", pTitle ); printf( "%s : ", pTitle );
printf( "Level =%6lu ", p->pPars->Delay ); printf( "Level =%6lu ", (long)p->pPars->Delay );
printf( "Area =%9lu ", p->pPars->Area ); printf( "Area =%9lu ", (long)p->pPars->Area );
printf( "Edge =%9lu ", p->pPars->Edge ); printf( "Edge =%9lu ", (long)p->pPars->Edge );
printf( "LUT =%9lu ", p->pPars->Area+p->nInverters ); printf( "LUT =%9lu ", (long)p->pPars->Area+p->nInverters );
if ( Vec_FltSize(&p->vSwitches) ) if ( Vec_FltSize(&p->vSwitches) )
printf( "Swt =%8.1f ", p->Switches ); printf( "Swt =%8.1f ", p->Switches );
if ( p->pPars->fUseMux7 ) if ( p->pPars->fUseMux7 )
printf( "Mux7 =%7lu ", p->pPars->Mux7 ); printf( "Mux7 =%7lu ", (long)p->pPars->Mux7 );
Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart ); Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart );
fflush( stdout ); fflush( stdout );
} }
......
...@@ -1415,11 +1415,11 @@ void Mf_ManPrintStats( Mf_Man_t * p, char * pTitle ) ...@@ -1415,11 +1415,11 @@ void Mf_ManPrintStats( Mf_Man_t * p, char * pTitle )
if ( !p->pPars->fVerbose ) if ( !p->pPars->fVerbose )
return; return;
printf( "%s : ", pTitle ); printf( "%s : ", pTitle );
printf( "Level =%6lu ", p->pPars->Delay ); printf( "Level =%6lu ", (long)p->pPars->Delay );
printf( "Area =%9lu ", p->pPars->Area ); printf( "Area =%9lu ", (long)p->pPars->Area );
printf( "Edge =%9lu ", p->pPars->Edge ); printf( "Edge =%9lu ", (long)p->pPars->Edge );
if ( p->pPars->fGenCnf ) if ( p->pPars->fGenCnf )
printf( "CNF =%9lu ", p->pPars->Clause ); printf( "CNF =%9lu ", (long)p->pPars->Clause );
Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart ); Abc_PrintTime( 1, "Time", Abc_Clock() - p->clkStart );
fflush( stdout ); fflush( stdout );
} }
......
...@@ -873,7 +873,7 @@ static void Ses_StoreRead( Ses_Store_t * pStore, const char * pFilename, int fSy ...@@ -873,7 +873,7 @@ static void Ses_StoreRead( Ses_Store_t * pStore, const char * pFilename, int fSy
fclose( pFile ); fclose( pFile );
printf( "read %lu entries from file\n", nEntries ); printf( "read %lu entries from file\n", (long)nEntries );
} }
// computes top decomposition of variables wrt. to AND and OR // computes top decomposition of variables wrt. to AND and OR
......
...@@ -902,7 +902,7 @@ void If_CluReverseOrder_old( word * pF, int nVars, int * V2P, int * P2V, int iVa ...@@ -902,7 +902,7 @@ void If_CluReverseOrder_old( word * pF, int nVars, int * V2P, int * P2V, int iVa
// return the number of cofactors w.r.t. the topmost vars (nBSsize) // return the number of cofactors w.r.t. the topmost vars (nBSsize)
int If_CluCountCofs( word * pF, int nVars, int nBSsize, int iShift, word pCofs[3][CLU_WRD_MAX/4] ) int If_CluCountCofs( word * pF, int nVars, int nBSsize, int iShift, word pCofs[3][CLU_WRD_MAX/4] )
{ {
word iCofs[128], iCof, Result = 0; word iCofs[128] = {0}, iCof, Result = 0;
word * pCofA, * pCofB; word * pCofA, * pCofB;
int nMints = (1 << nBSsize); int nMints = (1 << nBSsize);
int i, c, w, nCofs; int i, c, w, nCofs;
......
...@@ -766,7 +766,7 @@ Vec_Str_t * Scl_LibertyParseGenlibStr( char * pFileName, int fVerbose ) ...@@ -766,7 +766,7 @@ Vec_Str_t * Scl_LibertyParseGenlibStr( char * pFileName, int fVerbose )
//#define SCL_DEBUG //#define SCL_DEBUG
#ifdef SCL_DEBUG #ifdef SCL_DEBUG
static inline void Vec_StrPutI_( Vec_Str_t * vOut, int Val ) { printf( "%d ", Val ); Vec_StrPutI( vOut, Val ); } static inline void Vec_StrPutI_( Vec_Str_t * vOut, int Val ) { printf( "%d ", Val ); Vec_StrPutI( vOut, Val ); }
static inline void Vec_StrPutW_( Vec_Str_t * vOut, word Val ) { printf( "%lu ", Val ); Vec_StrPutW( vOut, Val ); } static inline void Vec_StrPutW_( Vec_Str_t * vOut, word Val ) { printf( "%lu ", (long)Val ); Vec_StrPutW( vOut, Val ); }
static inline void Vec_StrPutF_( Vec_Str_t * vOut, float Val ) { printf( "%f ", Val ); Vec_StrPutF( vOut, Val ); } static inline void Vec_StrPutF_( Vec_Str_t * vOut, float Val ) { printf( "%f ", Val ); Vec_StrPutF( vOut, Val ); }
static inline void Vec_StrPutS_( Vec_Str_t * vOut, char * Val ) { printf( "%s ", Val ); Vec_StrPutS( vOut, Val ); } static inline void Vec_StrPutS_( Vec_Str_t * vOut, char * Val ) { printf( "%s ", Val ); Vec_StrPutS( vOut, Val ); }
static inline void Vec_StrPut_( Vec_Str_t * vOut ) { printf( "\n" ); } static inline void Vec_StrPut_( Vec_Str_t * vOut ) { printf( "\n" ); }
......
...@@ -109,7 +109,7 @@ Vec_Int_t * Gia_PolynCoreOrder_int( Gia_Man_t * pGia, Vec_Int_t * vAdds, Vec_Wec ...@@ -109,7 +109,7 @@ Vec_Int_t * Gia_PolynCoreOrder_int( Gia_Man_t * pGia, Vec_Int_t * vAdds, Vec_Wec
{ {
Vec_Int_t * vOrder = Vec_IntAlloc( 1000 ); Vec_Int_t * vOrder = Vec_IntAlloc( 1000 );
Vec_Bit_t * vIsRoot = Vec_BitStart( Gia_ManObjNum(pGia) ); Vec_Bit_t * vIsRoot = Vec_BitStart( Gia_ManObjNum(pGia) );
int i, k, Index, Driver, Entry1, Entry2 = -1; int i, k, Index = -1, Driver, Entry1, Entry2 = -1;
// mark roots // mark roots
Vec_IntForEachEntry( vRoots, Driver, i ) Vec_IntForEachEntry( vRoots, Driver, i )
Vec_BitWriteEntry( vIsRoot, Driver, 1 ); Vec_BitWriteEntry( vIsRoot, Driver, 1 );
......
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