Commit 4cb042f8 by Alan Mishchenko

Bug fix in the printout of &popart.

parent ca7c8011
...@@ -498,12 +498,14 @@ Vec_Ptr_t * Gia_ManHashOutputs( Gia_Man_t * p, Vec_Wrd_t * vSigns, int fVerbose ...@@ -498,12 +498,14 @@ Vec_Ptr_t * Gia_ManHashOutputs( Gia_Man_t * p, Vec_Wrd_t * vSigns, int fVerbose
if ( fVerbose ) if ( fVerbose )
printf( "Computed %d partitions:\n", Vec_PtrSize(vBins) ); printf( "Computed %d partitions:\n", Vec_PtrSize(vBins) );
if ( fVerbose )
printf( "Listing only partitions with more than 100 outputs:\n" );
Vec_PtrForEachEntry( Vec_Int_t *, vBins, vBin, i ) Vec_PtrForEachEntry( Vec_Int_t *, vBins, vBin, i )
{ {
if ( fVerbose ) if ( fVerbose && Vec_IntSize(vBin) > 100 )
{ {
int Offset = Vec_IntEntry( vBin, 0 ); int PoNum = Vec_IntEntry( vBin, 1 );
word Sign = Vec_WrdEntry( vSigns, Offset ); word Sign = Vec_WrdEntry( vSigns, PoNum );
printf( "%3d ", i ); printf( "%3d ", i );
Extra_PrintBinary( stdout, (unsigned *)&Sign, 64 ); Extra_PrintBinary( stdout, (unsigned *)&Sign, 64 );
printf( " " ); printf( " " );
...@@ -514,7 +516,7 @@ Vec_Ptr_t * Gia_ManHashOutputs( Gia_Man_t * p, Vec_Wrd_t * vSigns, int fVerbose ...@@ -514,7 +516,7 @@ Vec_Ptr_t * Gia_ManHashOutputs( Gia_Man_t * p, Vec_Wrd_t * vSigns, int fVerbose
Vec_IntPop( vBin ); Vec_IntPop( vBin );
Vec_IntSort( vBin, 0 ); Vec_IntSort( vBin, 0 );
if ( fVerbose ) if ( fVerbose && Vec_IntSize(vBin) > 100 )
{ {
printf( "PO =%5d ", Vec_IntSize(vBin) ); printf( "PO =%5d ", Vec_IntSize(vBin) );
printf( "FF =%5d", Gia_ManCountFlops(p, vBin) ); printf( "FF =%5d", Gia_ManCountFlops(p, vBin) );
......
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