summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2021-03-28 14:54:07 -1000
committerAlan Mishchenko <alanmi@berkeley.edu>2021-03-28 14:54:07 -1000
commit18088bd7dcf3de03cc4f9a439e6b41d04e2f8413 (patch)
tree028a5757b0ff3e89bdd173d3bb044b3c5c8989ca /src
parent35a4ce557cb84ef8f92ace363c92b264cda59ac7 (diff)
downloadabc-18088bd7dcf3de03cc4f9a439e6b41d04e2f8413.tar.gz
abc-18088bd7dcf3de03cc4f9a439e6b41d04e2f8413.tar.bz2
abc-18088bd7dcf3de03cc4f9a439e6b41d04e2f8413.zip
Compiler warnings.
Diffstat (limited to 'src')
-rw-r--r--src/base/abci/abc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index 94a98037..35281f77 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -33043,10 +33043,10 @@ int Abc_CommandAbc9Iwls21Test( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Reading AIGER from file \"%s\" has failed.\n", pArgvNew[0] );
return 0;
}
- if ( pAbc->pGia == NULL )
+ if ( Gia_ManRegNum(pAig) > 0 )
{
- Abc_Print( -1, "Abc_CommandAbc9Iwls21Test(): There is no AIG.\n" );
- return 1;
+ Abc_Print( -1, "Abc_CommandAbc9Iwls21Test(): This command works only for combinational AIGs.\n" );
+ return 0;
}
Gia_ManTestWordFile( pAig, pArgvNew[1], pDumpFile, fVerbose );
Gia_ManStop( pAig );