Corner-case bug in invariant profiling.

This commit is contained in:
Alan Mishchenko 2015-12-18 12:25:24 -10:00
parent 54269c7cec
commit ba5e69952d
1 changed files with 5 additions and 0 deletions

View File

@ -412,6 +412,11 @@ int Abc_CommandPsInv( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( 1, "Abc_CommandPsInv(): There is no saved invariant.\n" );
return 0;
}
if ( Wlc_AbcGetInv(pAbc) == NULL )
{
Abc_Print( 1, "Abc_CommandPsInv(): Invariant is not available.\n" );
return 0;
}
Wlc_NtkPrintInvStats( pNtk, Wlc_AbcGetInv(pAbc), fVerbose );
return 0;
usage: