diff options
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/abci/abc.c | 6 | ||||
-rw-r--r-- | src/base/abci/abcTiming.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 76c604bb..e48886be 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -19626,6 +19626,12 @@ int Abc_CommandCec( Abc_Frame_t * pAbc, int argc, char ** argv ) } } + if ( pNtk->vPhases != NULL ) + { + Abc_Print( -1, "Cannot compare networks with phases defined.\n" ); + return 1; + } + pArgvNew = argv + globalUtilOptind; nArgcNew = argc - globalUtilOptind; if ( !Abc_NtkPrepareTwoNtks( stdout, pNtk, pArgvNew, nArgcNew, &pNtk1, &pNtk2, &fDelete1, &fDelete2 ) ) diff --git a/src/base/abci/abcTiming.c b/src/base/abci/abcTiming.c index e4dd9503..50d2a9b7 100644 --- a/src/base/abci/abcTiming.c +++ b/src/base/abci/abcTiming.c @@ -1053,7 +1053,7 @@ int Abc_ObjLevelNew( Abc_Obj_t * pObj ) int i, Level = 0; Abc_ObjForEachFanin( pObj, pFanin, i ) Level = Abc_MaxFloat( Level, Abc_ObjLevel(pFanin) ); - return Level + 1; + return Level + (int)(Abc_ObjFaninNum(pObj) > 0); } /**Function************************************************************* |