From 9e1765216ba5f64d89a0dc93e33fb95c84a0c779 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 28 Apr 2013 16:55:25 -0700 Subject: Added option 'int -I ' to specify file names to dump invariants. --- src/proof/int/intMan.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/proof/int/intMan.c') diff --git a/src/proof/int/intMan.c b/src/proof/int/intMan.c index e419da86..6dbf6f66 100644 --- a/src/proof/int/intMan.c +++ b/src/proof/int/intMan.c @@ -52,6 +52,7 @@ Inter_Man_t * Inter_ManCreate( Aig_Man_t * pAig, Inter_ManParams_t * pPars ) p->vVarsAB = Vec_IntAlloc( Aig_ManRegNum(pAig) ); p->nConfLimit = pPars->nBTLimit; p->fVerbose = pPars->fVerbose; + p->pFileName = pPars->pFileName; p->pAig = pAig; if ( pPars->fDropInvar ) p->vInters = Vec_PtrAlloc( 100 ); @@ -102,14 +103,15 @@ void Inter_ManClean( Inter_Man_t * p ) ***********************************************************************/ void Inter_ManInterDump( Inter_Man_t * p, int fProved ) { + char * pFileName = p->pFileName ? p->pFileName : "invar.aig"; Aig_Man_t * pMan; pMan = Aig_ManDupArray( p->vInters ); - Ioa_WriteAiger( pMan, "invar.aig", 0, 0 ); + Ioa_WriteAiger( pMan, pFileName, 0, 0 ); Aig_ManStop( pMan ); if ( fProved ) - printf( "Inductive invariant is dumped into file \"invar.aig\".\n" ); + printf( "Inductive invariant is dumped into file \"%s\".\n", pFileName ); else - printf( "Interpolants are dumped into file \"inter.aig\".\n" ); + printf( "Interpolants are dumped into file \"%s\".\n", pFileName ); } /**Function************************************************************* -- cgit v1.2.3