diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-09-29 20:21:27 -0400 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-09-29 20:21:27 -0400 |
commit | 7fab7fd176603505cabc5709e13be5c052f0ebe6 (patch) | |
tree | 452208b0d9a21d9069e0cee88efaf19db54f1189 /src/base/abci/abcMini.c | |
parent | 8a91a9afe8d56b7f266e4a9e64aceac8737395dc (diff) | |
download | abc-7fab7fd176603505cabc5709e13be5c052f0ebe6.tar.gz abc-7fab7fd176603505cabc5709e13be5c052f0ebe6.tar.bz2 abc-7fab7fd176603505cabc5709e13be5c052f0ebe6.zip |
Added serialization of Mini AIG.
Diffstat (limited to 'src/base/abci/abcMini.c')
-rw-r--r-- | src/base/abci/abcMini.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/abci/abcMini.c b/src/base/abci/abcMini.c index dd80c64d..93932ceb 100644 --- a/src/base/abci/abcMini.c +++ b/src/base/abci/abcMini.c @@ -186,6 +186,16 @@ void Abc_NtkMiniAigTest( Abc_Ntk_t * pNtk ) Mini_AigStop( p ); Abc_NtkPrintStats( pNtkNew, 0, 0, 0, 0, 0, 0, 0 ); Abc_NtkDelete( pNtkNew ); + + // test dumping + p = Abc_NtkToMiniAig( pNtk ); + Mini_AigDump( p, "miniaig.data" ); + Mini_AigPrintStats( p ); + Mini_AigStop( p ); + + p = Mini_AigLoad( "miniaig.data" ); + Mini_AigPrintStats( p ); + Mini_AigStop( p ); } /* |