diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-06-01 23:49:52 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-06-01 23:49:52 -0700 |
commit | 3d8eff2cdc7f2dfbcd8a8b885782139ea75c63c2 (patch) | |
tree | 9720b2ce2bbad17b5157a6ddfa251046f4e59ed9 /src/base/abci | |
parent | ebf10fdc33fbd7b965c71d408ef31bff18013dc1 (diff) | |
download | abc-3d8eff2cdc7f2dfbcd8a8b885782139ea75c63c2.tar.gz abc-3d8eff2cdc7f2dfbcd8a8b885782139ea75c63c2.tar.bz2 abc-3d8eff2cdc7f2dfbcd8a8b885782139ea75c63c2.zip |
Corner-cases in &gprove and &mprove.
Diffstat (limited to 'src/base/abci')
-rw-r--r-- | src/base/abci/abc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index c0e85f25..44d40026 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -32709,6 +32709,11 @@ int Abc_CommandAbc9GroupProve( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Abc_CommandAbc9GroupProve(): There is no AIG.\n" ); return 1; } + if ( pCommLine == NULL ) + { + Abc_Print( -1, "Abc_CommandAbc9GroupProve(): Command line is not given.\n" ); + return 1; + } vStatus = Gia_ManGroupProve( pAbc->pGia, pCommLine, nGroupSize, fVerbose ); Vec_IntFree( vStatus ); return 0; @@ -32826,7 +32831,12 @@ int Abc_CommandAbc9MultiProve( Abc_Frame_t * pAbc, int argc, char ** argv ) } if ( pAbc->pGia == NULL ) { - Abc_Print( -1, "Abc_CommandAbc9PoPart(): There is no AIG.\n" ); + Abc_Print( -1, "Abc_CommandAbc9MultiProve(): There is no AIG.\n" ); + return 1; + } + if ( Gia_ManRegNum(pAbc->pGia) == 0 ) + { + Abc_Print( -1, "Abc_CommandAbc9MultiProve(): The problem is combinational.\n" ); return 1; } pAbc->Status = Gia_ManMultiProve( pAbc->pGia, pPars ); |