diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-06-21 08:03:49 +0200 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-06-21 08:03:49 +0200 |
commit | 26ac9ef91a832f26875cae0011893eae3083dceb (patch) | |
tree | 05b3d6536365b37b314f86c61008591c2ae8924d | |
parent | 7e8fc63d90d364761ef43d74017d729a08e825c5 (diff) | |
download | abc-26ac9ef91a832f26875cae0011893eae3083dceb.tar.gz abc-26ac9ef91a832f26875cae0011893eae3083dceb.tar.bz2 abc-26ac9ef91a832f26875cae0011893eae3083dceb.zip |
Making 'dsec' return verification status.
-rw-r--r-- | src/base/abci/abc.c | 2 | ||||
-rw-r--r-- | src/base/abci/abcDar.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 2c994908..63ea7050 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -23903,7 +23903,7 @@ int Abc_CommandDSec( Abc_Frame_t * pAbc, int argc, char ** argv ) } // perform verification - Abc_NtkDarSec( pNtk1, pNtk2, pSecPar ); + pAbc->Status = Abc_NtkDarSec( pNtk1, pNtk2, pSecPar ); if ( fDelete1 ) Abc_NtkDelete( pNtk1 ); if ( fDelete2 ) Abc_NtkDelete( pNtk2 ); diff --git a/src/base/abci/abcDar.c b/src/base/abci/abcDar.c index 8b9d17bc..c2a25383 100644 --- a/src/base/abci/abcDar.c +++ b/src/base/abci/abcDar.c @@ -2956,7 +2956,7 @@ int Abc_NtkDarSec( Abc_Ntk_t * pNtk1, Abc_Ntk_t * pNtk2, Fra_Sec_t * pSecPar ) if ( pMiter == NULL ) { Abc_Print( 1, "Miter computation has failed.\n" ); - return 0; + return -1; } RetValue = Abc_NtkMiterIsConstant( pMiter ); if ( RetValue == 0 ) |