diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-12-18 12:25:24 -1000 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-12-18 12:25:24 -1000 |
commit | ba5e69952dea47181040ef2c5693c8524c069679 (patch) | |
tree | 00ce3ad90ec640c986488cd968fb66e03b5633e6 | |
parent | 54269c7cec31c7580bed4e2bd1811c0208122ffa (diff) | |
download | abc-ba5e69952dea47181040ef2c5693c8524c069679.tar.gz abc-ba5e69952dea47181040ef2c5693c8524c069679.tar.bz2 abc-ba5e69952dea47181040ef2c5693c8524c069679.zip |
Corner-case bug in invariant profiling.
-rw-r--r-- | src/base/wlc/wlcCom.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/wlc/wlcCom.c b/src/base/wlc/wlcCom.c index 37fb549f..3f8cc492 100644 --- a/src/base/wlc/wlcCom.c +++ b/src/base/wlc/wlcCom.c @@ -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: |