From 9f396a0d7e652c420f4af74e4c8db06068bea862 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 9 Dec 2012 10:11:52 -0800 Subject: Enabling multi-output solving in 'pdr'. --- src/base/abci/abcDar.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/base/abci/abcDar.c b/src/base/abci/abcDar.c index e427524a..496855c2 100644 --- a/src/base/abci/abcDar.c +++ b/src/base/abci/abcDar.c @@ -2738,7 +2738,7 @@ int Abc_NtkDarPdr( Abc_Ntk_t * pNtk, Pdr_Par_t * pPars, Abc_Cex_t ** ppCex ) if ( RetValue == 1 ) Abc_Print( 1, "Property proved. " ); 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 ) Abc_Print( 1, "Property UNDECIDED. " ); else @@ -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_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 ) ) Abc_Print( 1, "Abc_NtkDarPdr(): Counter-example verification has FAILED.\n" ); Aig_ManStop( pMan ); -- cgit v1.2.3