summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-03-19 23:49:27 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-03-19 23:49:27 -0700
commitd44d9e292788efa2d933ffdeeaa058e4bc416e90 (patch)
tree00942cc7a592fd17749752371158d2374f62e00a /src/base
parentc1e54b8b761b38f0c0fc715bce44dbd0b97fe55a (diff)
downloadabc-d44d9e292788efa2d933ffdeeaa058e4bc416e90.tar.gz
abc-d44d9e292788efa2d933ffdeeaa058e4bc416e90.tar.bz2
abc-d44d9e292788efa2d933ffdeeaa058e4bc416e90.zip
Experiments with recent ideas.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abci/abc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index e54a62e9..9138d212 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -32845,8 +32845,7 @@ usage:
***********************************************************************/
int Abc_CommandAbc9Lilac( Abc_Frame_t * pAbc, int argc, char ** argv )
{
- extern Vec_Int_t * Gia_ManLilacTest( Gia_Man_t * p, Vec_Int_t * vInit, int nFrames, int nWords, int nTimeOut, int fSim, int fVerbose );
- Vec_Int_t * vTemp;
+ extern int Gia_ManLilacTest( Gia_Man_t * p, Vec_Int_t * vInit, int nFrames, int nWords, int nTimeOut, int fSim, int fVerbose );
int c, nFrames = 1000, nWords = 1000, nTimeOut = 0, fSim = 0, fVerbose = 0;
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "FWTsvh" ) ) != EOF )
@@ -32908,8 +32907,12 @@ int Abc_CommandAbc9Lilac( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Abc_CommandAbc9Lilac(): AIG is combinational.\n" );
return 0;
}
- pAbc->pGia->vInitClasses = Gia_ManLilacTest( pAbc->pGia, vTemp = pAbc->pGia->vInitClasses, nFrames, nWords, nTimeOut, fSim, fVerbose );
- Vec_IntFreeP( &vTemp );
+ if ( pAbc->pGia->vInitClasses == NULL )
+ {
+ Abc_Print( -1, "Abc_CommandAbc9Lilac(): Init array is not given.\n" );
+ return 0;
+ }
+ Gia_ManLilacTest( pAbc->pGia, pAbc->pGia->vInitClasses, nFrames, nWords, nTimeOut, fSim, fVerbose );
return 0;
usage: