From cdcfb2febfce8809fe41871287d8aab72d7ff75c Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 21 Jan 2026 08:18:01 +0700 Subject: [PATCH] Changing some default return values to make sure scripts do not abort. --- src/base/abci/abc.c | 4 ++-- src/base/io/io.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 0cecf8fc9..89c1b0751 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -35427,7 +35427,7 @@ int Abc_CommandAbc9Ps( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( pAbc->pGiaBest == NULL ) { Abc_Print( -1, "Abc_CommandAbc9Ps(): There is no AIG.\n" ); - return 1; + return 0; } Gia_ManPrintStats( pAbc->pGiaBest, pPars ); } @@ -35436,7 +35436,7 @@ int Abc_CommandAbc9Ps( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( pAbc->pGia == NULL ) { Abc_Print( -1, "Abc_CommandAbc9Ps(): There is no AIG.\n" ); - return 1; + return 0; } Gia_ManPrintStats( pAbc->pGia, pPars ); } diff --git a/src/base/io/io.c b/src/base/io/io.c index d841bdb52..6d81d3a45 100644 --- a/src/base/io/io.c +++ b/src/base/io/io.c @@ -4207,7 +4207,7 @@ int IoCommandWriteTruths( Abc_Frame_t * pAbc, int argc, char **argv ) if ( pAbc->pGia == NULL ) { Abc_Print( -1, "IoCommandWriteTruths(): There is no AIG.\n" ); - return 1; + return 0; } if ( Gia_ManPiNum(pAbc->pGia) > 16 ) {