diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2016-07-21 16:47:30 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2016-07-21 16:47:30 -0700 |
commit | 3c2c19ce5159c71fa5f402fd3b4168778b375e8a (patch) | |
tree | b9455bb7246e184ee511545bd8e9a9ab01203173 /src | |
parent | bfe7333f4105442a7df530c68ed1cf1b7da7edda (diff) | |
download | abc-3c2c19ce5159c71fa5f402fd3b4168778b375e8a.tar.gz abc-3c2c19ce5159c71fa5f402fd3b4168778b375e8a.tar.bz2 abc-3c2c19ce5159c71fa5f402fd3b4168778b375e8a.zip |
Adding new command 'dump_equiv'.
Diffstat (limited to 'src')
-rw-r--r-- | src/base/abci/abc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index f19f8449..ede93119 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -14817,7 +14817,6 @@ usage: int Abc_CommandDumpEquiv( Abc_Frame_t * pAbc, int argc, char ** argv ) { extern void Abc_NtkDumpEquiv( Abc_Ntk_t * pNtks[2], char * pFileName, int nConfs, int fVerbose ); - FILE * pFile = NULL; Abc_Ntk_t * pNtks[2] = {NULL}; char * pFileName[2], * pFileNameOut; int c, nConfs = 1000, fVerbose = 0; @@ -14861,7 +14860,12 @@ int Abc_CommandDumpEquiv( Abc_Frame_t * pAbc, int argc, char ** argv ) goto usage; Abc_NtkToAig( pNtks[c] ); } - Abc_NtkDumpEquiv( pNtks, pFileNameOut, nConfs, fVerbose ); + if ( Abc_NtkCiNum(pNtks[0]) != Abc_NtkCiNum(pNtks[1]) ) + Abc_Print( -1, "The number of primary inputs of networks \"%s\" and \"%s\" does not match.\n", Abc_NtkName(pNtks[0]), Abc_NtkName(pNtks[1]) ); +// else if ( Abc_NtkCoNum(pNtks[0]) != Abc_NtkCoNum(pNtks[1]) ) +// Abc_Print( -1, "The number of primary outputs of networks \"%s\" and \"%s\" does not match.\n", Abc_NtkName(pNtks[0]), Abc_NtkName(pNtks[1]) ); + else + Abc_NtkDumpEquiv( pNtks, pFileNameOut, nConfs, fVerbose ); Abc_NtkDelete( pNtks[0] ); Abc_NtkDelete( pNtks[1] ); return 0; |