diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-03-19 23:49:27 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-03-19 23:49:27 -0700 |
commit | d44d9e292788efa2d933ffdeeaa058e4bc416e90 (patch) | |
tree | 00942cc7a592fd17749752371158d2374f62e00a /src/base | |
parent | c1e54b8b761b38f0c0fc715bce44dbd0b97fe55a (diff) | |
download | abc-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.c | 11 |
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: |