diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-27 14:44:43 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-27 14:44:43 -0700 |
commit | a176485a9ea64212dd22186433bf3b9e9a03fc9f (patch) | |
tree | acb5d39184fc69acf7b87c9b6cbcec82edd08a91 /src/base | |
parent | acdfc3cc9ff94126390fa6650c8c13cfd738a810 (diff) | |
download | abc-a176485a9ea64212dd22186433bf3b9e9a03fc9f.tar.gz abc-a176485a9ea64212dd22186433bf3b9e9a03fc9f.tar.bz2 abc-a176485a9ea64212dd22186433bf3b9e9a03fc9f.zip |
Changing print-out in 'dprove' when the miter is combinational.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/abci/abcDar.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/base/abci/abcDar.c b/src/base/abci/abcDar.c index 8ec810f5..f93e788d 100644 --- a/src/base/abci/abcDar.c +++ b/src/base/abci/abcDar.c @@ -2795,26 +2795,29 @@ int Abc_NtkDarProve( Abc_Ntk_t * pNtk, Fra_Sec_t * pSecPar, int nBmcFramesMax, i if ( RetValue == 0 && (Abc_NtkLatchNum(pNtk) == 0) ) { pNtk->pModel = pNtkComb->pModel; pNtkComb->pModel = NULL; - Abc_Print( 1, "Networks are not equivalent.\n" ); - ABC_PRT( "Time", Abc_Clock() - clk ); if ( pSecPar->fReportSolution ) - { Abc_Print( 1, "SOLUTION: FAIL " ); - ABC_PRT( "Time", Abc_Clock() - clkTotal ); - } + else + Abc_Print( 1, "SATISFIABLE " ); + ABC_PRT( "Time", Abc_Clock() - clkTotal ); return RetValue; } Abc_NtkDelete( pNtkComb ); // return the result, if solved if ( RetValue == 1 ) { - Abc_Print( 1, "Networks are equivalent after CEC. " ); - ABC_PRT( "Time", Abc_Clock() - clk ); if ( pSecPar->fReportSolution ) - { - Abc_Print( 1, "SOLUTION: PASS " ); + Abc_Print( 1, "SOLUTION: PASS " ); + else + Abc_Print( 1, "UNSATISFIABLE " ); + ABC_PRT( "Time", Abc_Clock() - clkTotal ); + return RetValue; + } + // return undecided, if the miter is combinational + if ( Abc_NtkLatchNum(pNtk) == 0 ) + { + Abc_Print( 1, "UNDECIDED " ); ABC_PRT( "Time", Abc_Clock() - clkTotal ); - } return RetValue; } } |