Changing some default return values to make sure scripts do not abort.

This commit is contained in:
Alan Mishchenko 2026-01-21 08:18:01 +07:00
parent 57544eb9ca
commit cdcfb2febf
2 changed files with 3 additions and 3 deletions

View File

@ -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 );
}

View File

@ -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 )
{