summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaIf.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-08-14 22:50:49 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-08-14 22:50:49 -0700
commit6de83eb3b6c92bcf0889350456bfdcfde88e58b7 (patch)
tree94d96d93d3833662dad9ce6ee817b3c64e76270d /src/aig/gia/giaIf.c
parent728291b087b253e839c4a29b3e1b31e45401b472 (diff)
downloadabc-6de83eb3b6c92bcf0889350456bfdcfde88e58b7.tar.gz
abc-6de83eb3b6c92bcf0889350456bfdcfde88e58b7.tar.bz2
abc-6de83eb3b6c92bcf0889350456bfdcfde88e58b7.zip
Enabling LUT decomposition in two special cases.
Diffstat (limited to 'src/aig/gia/giaIf.c')
-rw-r--r--src/aig/gia/giaIf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/aig/gia/giaIf.c b/src/aig/gia/giaIf.c
index ab4b8206..b0b7b1b4 100644
--- a/src/aig/gia/giaIf.c
+++ b/src/aig/gia/giaIf.c
@@ -235,7 +235,7 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p )
Abc_Print( 1, "lev =%5d ", LevelMax );
Abc_Print( 1, "mem =%5.2f MB", 4.0*(Gia_ManObjNum(p) + 2*nLuts + nFanins)/(1<<20) );
Abc_Print( 1, "\n" );
-/*
+
{
char * pFileName = "stats_map.txt";
static char FileNameOld[1000] = {0};
@@ -262,7 +262,7 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p )
}
fclose( pTable );
}
-*/
+
}
/**Function*************************************************************
@@ -649,7 +649,7 @@ int Gia_ManFromIfLogicNode( If_Man_t * p, Gia_Man_t * pNew, int iObj, Vec_Int_t
int nLeaves = Vec_IntSize(vLeaves);
int i, Length, nLutLeaf, nLutLeaf2, nLutRoot, iObjLit1, iObjLit2, iObjLit3;
// workaround for the special case
- if ( p->pPars->fEnableCheck75 || p->pPars->fEnableCheck75u )
+ if ( p && (p->pPars->fEnableCheck75 || p->pPars->fEnableCheck75u) )
pStr = "54";
// check if there is no LUT structures
if ( pStr == NULL )
@@ -746,7 +746,7 @@ int Gia_ManFromIfLogicNode( If_Man_t * p, Gia_Man_t * pNew, int iObj, Vec_Int_t
}
// perform decomposition
- if ( p->pPars->fEnableCheck75 || p->pPars->fEnableCheck75u )
+ if ( p && (p->pPars->fEnableCheck75 || p->pPars->fEnableCheck75u) )
{
// if ( nLeaves < 8 && If_CutPerformCheck16( p, (unsigned *)pTruth, nVars, nLeaves, "44" ) )
if ( nLeaves < 8 && If_CluCheckExt( NULL, pRes, nLeaves, 4, 4, pLut0, pLut1, &Func0, &Func1 ) )