summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaJf.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-10-10 12:35:27 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-10-10 12:35:27 -0700
commit33695bed11237e8b2e04e75daa0659070d5605a6 (patch)
tree4b8052282ac3adccc70824798a733ea8f38c6565 /src/aig/gia/giaJf.c
parent4c62b0028816cda59edf796577056d6d27e1be8d (diff)
downloadabc-33695bed11237e8b2e04e75daa0659070d5605a6.tar.gz
abc-33695bed11237e8b2e04e75daa0659070d5605a6.tar.bz2
abc-33695bed11237e8b2e04e75daa0659070d5605a6.zip
Improvements to the canonical form computation.
Diffstat (limited to 'src/aig/gia/giaJf.c')
-rw-r--r--src/aig/gia/giaJf.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/aig/gia/giaJf.c b/src/aig/gia/giaJf.c
index 454a1b3d..252a8187 100644
--- a/src/aig/gia/giaJf.c
+++ b/src/aig/gia/giaJf.c
@@ -357,6 +357,16 @@ Jf_Man_t * Jf_ManAlloc( Gia_Man_t * pGia, Jf_Par_t * pPars )
p->clkStart = Abc_Clock();
return p;
}
+void Jf_ManDumpTruthTables( Jf_Man_t * p )
+{
+ char * pFileName = "truths.txt";
+ FILE * pFile = fopen( pFileName, "wb" );
+ Vec_MemDump( pFile, p->vTtMem );
+ fclose( pFile );
+ printf( "Dumped %d %d-var truth tables into file \"%s\" (%.2f MB).\n",
+ Vec_MemEntryNum(p->vTtMem), p->pPars->nLutSize, pFileName,
+ 17.0 * Vec_MemEntryNum(p->vTtMem) / (1 << 20) );
+}
void Jf_ManFree( Jf_Man_t * p )
{
if ( p->pPars->fVerbose && p->pDsd )
@@ -365,16 +375,6 @@ void Jf_ManFree( Jf_Man_t * p )
printf( "Unique truth tables = %d. Memory = %.2f MB\n", Vec_MemEntryNum(p->vTtMem), Vec_MemMemory(p->vTtMem) / (1<<20) );
if ( p->pPars->fVeryVerbose && p->pPars->fCutMin && p->pPars->fFuncDsd )
Jf_ManProfileClasses( p );
- if ( p->pPars->fVeryVerbose && p->pPars->fCutMin && !p->pPars->fFuncDsd )
- {
- char * pFileName = "truths.txt";
- FILE * pFile = fopen( pFileName, "wb" );
- Vec_MemDump( pFile, p->vTtMem );
- fclose( pFile );
- printf( "Dumped %d %d-var truth tables into file \"%s\" (%.2f MB).\n",
- Vec_MemEntryNum(p->vTtMem), p->pPars->nLutSize, pFileName,
- 17.0 * Vec_MemEntryNum(p->vTtMem) / (1 << 20) );
- }
if ( p->pPars->fCoarsen )
Gia_ManCleanMark0( p->pGia );
ABC_FREE( p->pGia->pRefs );
@@ -1689,6 +1689,8 @@ Gia_Man_t * Jf_ManPerformMapping( Gia_Man_t * pGia, Jf_Par_t * pPars )
Jf_ManPropagateEla( p, 0 ); Jf_ManPrintStats( p, "Area " );
Jf_ManPropagateEla( p, 1 ); Jf_ManPrintStats( p, "Edge " );
}
+ if ( p->pPars->fVeryVerbose && p->pPars->fCutMin && !p->pPars->fFuncDsd )
+ Jf_ManDumpTruthTables( p );
if ( p->pPars->fPureAig )
pNew = Jf_ManDeriveGia(p);
else if ( p->pPars->fCutMin )