diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-07 15:58:29 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-07 15:58:29 -0800 |
commit | 21bb515b3c32aee47a34e9dfc162c8bc09a5cdc9 (patch) | |
tree | 6618ca8b55fbdc87e67c1a9b79306a7eb97bd068 /src/base/abci | |
parent | 3e92b873622ce7ca7baf74520abc28cc7c68dded (diff) | |
download | abc-21bb515b3c32aee47a34e9dfc162c8bc09a5cdc9.tar.gz abc-21bb515b3c32aee47a34e9dfc162c8bc09a5cdc9.tar.bz2 abc-21bb515b3c32aee47a34e9dfc162c8bc09a5cdc9.zip |
Added handling runtime limit inside And and AndExist.
Diffstat (limited to 'src/base/abci')
-rw-r--r-- | src/base/abci/abc.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 32618e76..7ee6769e 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -27590,6 +27590,11 @@ int Abc_CommandAbc9ReachM( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Abc_CommandAbc9ReachM(): The current AIG has no latches.\n" ); return 0; } + if ( Gia_ManObjNum(pAbc->pGia) >= (1<<16) ) + { + Abc_Print( -1, "Abc_CommandAbc9ReachM(): Currently cannot handle AIGs with more than %d objects.\n", (1<<16) ); + return 0; + } pAbc->Status = Llb_ManModelCheckGia( pAbc->pGia, pPars ); pAbc->nFrames = pPars->iFrame; Abc_FrameReplaceCex( pAbc, &pAbc->pGia->pCexSeq ); @@ -27737,6 +27742,11 @@ int Abc_CommandAbc9ReachP( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Abc_CommandAbc9ReachP(): The current AIG has no latches.\n" ); return 0; } + if ( Gia_ManObjNum(pAbc->pGia) >= (1<<16) ) + { + Abc_Print( -1, "Abc_CommandAbc9ReachP(): Currently cannot handle AIGs with more than %d objects.\n", (1<<16) ); + return 0; + } pMan = Gia_ManToAigSimple( pAbc->pGia ); pAbc->Status = Llb_ManReachMinCut( pMan, pPars ); pAbc->nFrames = pPars->iFrame; @@ -27865,6 +27875,11 @@ int Abc_CommandAbc9ReachN( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Abc_CommandAbc9ReachN(): The current AIG has no latches.\n" ); return 0; } + if ( Gia_ManObjNum(pAbc->pGia) >= (1<<16) ) + { + Abc_Print( -1, "Abc_CommandAbc9ReachN(): Currently cannot handle AIGs with more than %d objects.\n", (1<<16) ); + return 0; + } pMan = Gia_ManToAigSimple( pAbc->pGia ); pAbc->Status = Llb_NonlinCoreReach( pMan, pPars ); pAbc->nFrames = pPars->iFrame; |