summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2019-11-19 20:41:34 +0800
committerAlan Mishchenko <alanmi@berkeley.edu>2019-11-19 20:41:34 +0800
commitf2702aeea6cbcf599a388e514b5a3350ba56c172 (patch)
treee36cbcfb70f0c78a558a6b25a5d6b3d5c2e51fdc
parent8752613e3ae41ae904efdb77889bc2fe52d872e0 (diff)
downloadabc-f2702aeea6cbcf599a388e514b5a3350ba56c172.tar.gz
abc-f2702aeea6cbcf599a388e514b5a3350ba56c172.tar.bz2
abc-f2702aeea6cbcf599a388e514b5a3350ba56c172.zip
Corner case bug fix in print_stats.
-rw-r--r--src/base/abci/abcPrint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/abci/abcPrint.c b/src/base/abci/abcPrint.c
index 708b8946..dbfc99b8 100644
--- a/src/base/abci/abcPrint.c
+++ b/src/base/abci/abcPrint.c
@@ -175,7 +175,7 @@ float Abc_NtkMfsTotalSwitching( Abc_Ntk_t * pNtk )
// strash the network
pNtkStr = Abc_NtkStrash( pNtk, 0, 1, 0 );
Abc_NtkForEachObj( pNtk, pObjAbc, i )
- if ( Abc_ObjRegular((Abc_Obj_t *)pObjAbc->pTemp)->Type == ABC_FUNC_NONE || (!Abc_ObjIsCi(pObjAbc) && !Abc_ObjIsNode(pObjAbc)) )
+ if ( pObjAbc->pTemp && Abc_ObjRegular((Abc_Obj_t *)pObjAbc->pTemp)->Type == ABC_FUNC_NONE || (!Abc_ObjIsCi(pObjAbc) && !Abc_ObjIsNode(pObjAbc)) )
pObjAbc->pTemp = NULL;
// map network into an AIG
pAig = Abc_NtkToDar( pNtkStr, 0, (int)(Abc_NtkLatchNum(pNtk) > 0) );