Commit 9f396a0d by Alan Mishchenko

Enabling multi-output solving in 'pdr'.

parent 8a08453a
...@@ -2738,7 +2738,7 @@ int Abc_NtkDarPdr( Abc_Ntk_t * pNtk, Pdr_Par_t * pPars, Abc_Cex_t ** ppCex ) ...@@ -2738,7 +2738,7 @@ int Abc_NtkDarPdr( Abc_Ntk_t * pNtk, Pdr_Par_t * pPars, Abc_Cex_t ** ppCex )
if ( RetValue == 1 ) if ( RetValue == 1 )
Abc_Print( 1, "Property proved. " ); Abc_Print( 1, "Property proved. " );
else if ( RetValue == 0 ) else if ( RetValue == 0 )
Abc_Print( 1, "Output %d of miter \"%s\" was asserted in frame %d. ", (*ppCex)->iPo, pNtk->pName, ppCex? (*ppCex)->iFrame : -1 ); Abc_Print( 1, "Output %d of miter \"%s\" was asserted in frame %d. ", pMan->pSeqModel->iPo, pNtk->pName, pMan->pSeqModel->iFrame );
else if ( RetValue == -1 ) else if ( RetValue == -1 )
Abc_Print( 1, "Property UNDECIDED. " ); Abc_Print( 1, "Property UNDECIDED. " );
else else
...@@ -2746,6 +2746,14 @@ int Abc_NtkDarPdr( Abc_Ntk_t * pNtk, Pdr_Par_t * pPars, Abc_Cex_t ** ppCex ) ...@@ -2746,6 +2746,14 @@ int Abc_NtkDarPdr( Abc_Ntk_t * pNtk, Pdr_Par_t * pPars, Abc_Cex_t ** ppCex )
ABC_PRT( "Time", clock() - clk ); ABC_PRT( "Time", clock() - clk );
} }
// ABC_FREE( pNtk->pSeqModel );
// pNtk->pSeqModel = pMan->pSeqModel; pMan->pSeqModel = NULL;
if ( ppCex )
*ppCex = pMan->pSeqModel;
else
ABC_FREE( pMan->pSeqModel );
pMan->pSeqModel = NULL;
if ( *ppCex && !Saig_ManVerifyCex( pMan, *ppCex ) ) if ( *ppCex && !Saig_ManVerifyCex( pMan, *ppCex ) )
Abc_Print( 1, "Abc_NtkDarPdr(): Counter-example verification has FAILED.\n" ); Abc_Print( 1, "Abc_NtkDarPdr(): Counter-example verification has FAILED.\n" );
Aig_ManStop( pMan ); Aig_ManStop( pMan );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment