From c20f1dcc73595dbcb0a702b48e37ec3ff45d8bfb Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 4 Dec 2022 07:35:16 -0800 Subject: [PATCH] Another way of dumping QBF problem into a file (bug fix). --- src/aig/gia/giaQbf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aig/gia/giaQbf.c b/src/aig/gia/giaQbf.c index ef97f4350..6ccbe4605 100644 --- a/src/aig/gia/giaQbf.c +++ b/src/aig/gia/giaQbf.c @@ -499,8 +499,8 @@ void Gia_QbfDumpFileInv( Gia_Man_t * pGia, int nPars ) Vec_IntWriteEntry( vVarMap, pCnf->pVarNums[Gia_ManCiIdToId(pGia, i)], i < nPars ? 1 : 2 ); // create various maps vExists1 = Vec_IntAlloc( nPars ); - vForAlls = Vec_IntAlloc( nPars ); - vExists2 = Vec_IntAlloc( Gia_ManCiNum(pGia) - 2*nPars ); + vForAlls = Vec_IntAlloc( Gia_ManCiNum(pGia) - nPars ); + vExists2 = Vec_IntAlloc( pCnf->nVars - Gia_ManCiNum(pGia) ); Vec_IntForEachEntry( vVarMap, Entry, i ) if ( Entry == 1 ) Vec_IntPush( vExists1, i );