summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaSweeper.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-02-26 14:18:42 -0500
committerAlan Mishchenko <alanmi@berkeley.edu>2013-02-26 14:18:42 -0500
commitef472c6c576e160c235157bf6f4260d921641c45 (patch)
tree1c92607aff5c0ed9c044ded788756e4506a28315 /src/aig/gia/giaSweeper.c
parent6e65cd14319f3fe843abf5ab01e4ea657408bb9b (diff)
downloadabc-ef472c6c576e160c235157bf6f4260d921641c45.tar.gz
abc-ef472c6c576e160c235157bf6f4260d921641c45.tar.bz2
abc-ef472c6c576e160c235157bf6f4260d921641c45.zip
User-controlable SAT sweeper.
Diffstat (limited to 'src/aig/gia/giaSweeper.c')
-rw-r--r--src/aig/gia/giaSweeper.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/aig/gia/giaSweeper.c b/src/aig/gia/giaSweeper.c
index e84c7b59..f728fe17 100644
--- a/src/aig/gia/giaSweeper.c
+++ b/src/aig/gia/giaSweeper.c
@@ -110,24 +110,23 @@ static inline Swp_Man_t * Swp_ManStart( Gia_Man_t * pGia )
{
Swp_Man_t * p;
int Lit;
- p = ABC_CALLOC( Swp_Man_t, 1 );
- p->pGia = pGia;
- p->nConfMax = 1000;
- p->vProbes = Vec_IntAlloc( 100 );
- p->vProbRefs = Vec_IntAlloc( 100 );
- p->vLit2Prob = Vec_IntStartFull( 10000 );
- p->vCondProbes = Vec_IntAlloc( 100 );
- p->vCondLits = Vec_IntAlloc( 100 );
- p->vId2Lit = Vec_IntAlloc( 10000 );
- p->vFront = Vec_IntAlloc( 100 );
- p->vFanins = Vec_IntAlloc( 100 );
- p->vCexSwp = Vec_IntAlloc( 100 );
- p->pSat = sat_solver_new();
- p->nSatVars = 1;
+ pGia->pData = p = ABC_CALLOC( Swp_Man_t, 1 );
+ p->pGia = pGia;
+ p->nConfMax = 1000;
+ p->vProbes = Vec_IntAlloc( 100 );
+ p->vProbRefs = Vec_IntAlloc( 100 );
+ p->vLit2Prob = Vec_IntStartFull( 10000 );
+ p->vCondProbes = Vec_IntAlloc( 100 );
+ p->vCondLits = Vec_IntAlloc( 100 );
+ p->vId2Lit = Vec_IntAlloc( 10000 );
+ p->vFront = Vec_IntAlloc( 100 );
+ p->vFanins = Vec_IntAlloc( 100 );
+ p->vCexSwp = Vec_IntAlloc( 100 );
+ p->pSat = sat_solver_new();
+ p->nSatVars = 1;
Swp_ManSetObj2Lit( p, 0, (Lit = Abc_Var2Lit(p->nSatVars++, 0)) );
Lit = Abc_LitNot(Lit);
sat_solver_addclause( p->pSat, &Lit, &Lit + 1 );
- pGia->pData = p;
return p;
}
static inline void Swp_ManStop( Gia_Man_t * pGia )
@@ -334,6 +333,7 @@ Gia_Man_t * Gia_SweeperExtractUserLogic( Gia_Man_t * p, Vec_Int_t * vProbeIds, V
pNew->vNamesIn = Vec_PtrDup( p->vNamesIn );
if ( vOutNames )
pNew->vNamesOut = Vec_PtrDup( vOutNames );
+Gia_ManPrintStats( pNew, 0, 0, 0 );
return pNew;
}