diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-17 15:51:12 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-17 15:51:12 -0800 |
commit | 5d7c568589a15205d2bfbe534064d9722e52116d (patch) | |
tree | 8e8c101f2f55b45ec083d95ce4abb15248f4cb12 /src | |
parent | ee9f66e2c4dba55e5ab4c7ce16223054b291d5fb (diff) | |
download | abc-5d7c568589a15205d2bfbe534064d9722e52116d.tar.gz abc-5d7c568589a15205d2bfbe534064d9722e52116d.tar.bz2 abc-5d7c568589a15205d2bfbe534064d9722e52116d.zip |
Changes to properly save current GIA after &miter -t and not erase the comb cex after &put.
Diffstat (limited to 'src')
-rw-r--r-- | src/base/abci/abc.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index c77a4f2b..1f8d98c0 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -21950,7 +21950,7 @@ int Abc_CommandAbc9Put( Abc_Frame_t * pAbc, int argc, char ** argv ) } // replace the current network Abc_FrameReplaceCurrentNetwork( pAbc, pNtk ); - Abc_FrameClearVerifStatus( pAbc ); +// Abc_FrameClearVerifStatus( pAbc ); return 0; usage: @@ -24016,8 +24016,13 @@ int Abc_CommandAbc9Miter( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Abc_CommandAbc9Miter(): The number of outputs should be even.\n" ); return 0; } - pAbc->pGia = Gia_ManTransformMiter( pAux = pAbc->pGia ); - Gia_ManStop( pAux ); + if ( pAbc->pGia == NULL ) + { + Abc_Print( -1, "Abc_CommandAbc9Miter(): There is no AIG.\n" ); + return 1; + } + pAux = Gia_ManTransformMiter( pAbc->pGia ); + Abc_CommandUpdate9( pAbc, pAux ); Abc_Print( 1, "The miter (current AIG) is transformed by XORing POs pair-wise.\n" ); return 0; } |