diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-30 23:11:38 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-30 23:11:38 -0800 |
commit | 044149593d94e3fe047e6c52066c77a317bbcd5b (patch) | |
tree | dd038938b3a287830c9df4138f2b0363d163ae86 /src/base/abci | |
parent | 7ea40494eb637c5c717c3fa80529bfbbec897f83 (diff) | |
download | abc-044149593d94e3fe047e6c52066c77a317bbcd5b.tar.gz abc-044149593d94e3fe047e6c52066c77a317bbcd5b.tar.bz2 abc-044149593d94e3fe047e6c52066c77a317bbcd5b.zip |
Graph isomorphism checking code.
Diffstat (limited to 'src/base/abci')
-rw-r--r-- | src/base/abci/abc.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index c71cfc7b..2ed59dbb 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -8837,16 +8837,26 @@ int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv ) extern void Aig_ManSupportsTest( Aig_Man_t * pMan ); extern int Aig_SupportSizeTest( Aig_Man_t * pMan ); extern int Abc_NtkSuppSizeTest( Abc_Ntk_t * p ); - extern void Iso_ManTest( Aig_Man_t * pAig, int fVerbose ); + extern Aig_Man_t * Iso_ManTest( Aig_Man_t * pAig, int fVerbose ); + extern Abc_Ntk_t * Abc_NtkFromAigPhase( Aig_Man_t * pMan ); if ( pNtk ) { Aig_Man_t * pAig = Abc_NtkToDar( pNtk, 0, 1 ); + Aig_Man_t * pRes; + Abc_Ntk_t * pNtkRes; // Aig_ManInterRepar( pAig, 1 ); // Aig_ManInterTest( pAig, 1 ); // Aig_ManSupportsTest( pAig ); // Aig_SupportSizeTest( pAig ); - Iso_ManTest( pAig, fVerbose ); + pRes = Iso_ManTest( pAig, fVerbose ); Aig_ManStop( pAig ); + + pNtkRes = Abc_NtkFromAigPhase( pRes ); + Aig_ManStop( pRes ); + + ABC_FREE( pNtkRes->pName ); + pNtkRes->pName = Extra_UtilStrsav(pNtk->pName); + Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes ); } } |