diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2022-04-04 22:08:53 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2022-04-04 22:08:53 -0700 |
commit | 7ad8f9548c359f92cd40afcf715a948acc6b6326 (patch) | |
tree | e52ddd2e58e97414281662bb21170fedfa95fd7f /src/base/abci/abcDar.c | |
parent | 547de09670ca4728abf52491455ad26c0823347a (diff) | |
download | abc-7ad8f9548c359f92cd40afcf715a948acc6b6326.tar.gz abc-7ad8f9548c359f92cd40afcf715a948acc6b6326.tar.bz2 abc-7ad8f9548c359f92cd40afcf715a948acc6b6326.zip |
Experiments with word-level data structures.
Diffstat (limited to 'src/base/abci/abcDar.c')
-rw-r--r-- | src/base/abci/abcDar.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/base/abci/abcDar.c b/src/base/abci/abcDar.c index f6818010..677cb7d0 100644 --- a/src/base/abci/abcDar.c +++ b/src/base/abci/abcDar.c @@ -658,6 +658,33 @@ Abc_Ntk_t * Abc_NtkFromAigPhase( Aig_Man_t * pMan ) } +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +int Abc_NtkFromGiaCollapse( Gia_Man_t * pGia ) +{ + Aig_Man_t * pMan = Gia_ManToAig( pGia, 0 ); int Res; + Abc_Ntk_t * pNtk = Abc_NtkFromAigPhase( pMan ), * pTemp; + //pNtk->pName = Extra_UtilStrsav(pGia->pName); + Aig_ManStop( pMan ); + // collapse the network + pNtk = Abc_NtkCollapse( pTemp = pNtk, 10000, 0, 1, 0, 0, 0 ); + Abc_NtkDelete( pTemp ); + if ( pNtk == NULL ) + return 0; + Res = Abc_NtkGetBddNodeNum( pNtk ); + Abc_NtkDelete( pNtk ); + return Res == 0; +} + /**Function************************************************************* |