From 26ac9ef91a832f26875cae0011893eae3083dceb Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Fri, 21 Jun 2019 08:03:49 +0200 Subject: Making 'dsec' return verification status. --- src/base/abci/abc.c | 2 +- src/base/abci/abcDar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 ) -- cgit v1.2.3