Commit 9f4ab5a2 by Alan Mishchenko

Bug fix in SAT sweeping.

parent b633363f
...@@ -528,7 +528,7 @@ int Gia_ManChoiceMinLevel_rec( Gia_Man_t * p, int iPivot, int fDiveIn, Vec_Int_t ...@@ -528,7 +528,7 @@ int Gia_ManChoiceMinLevel_rec( Gia_Man_t * p, int iPivot, int fDiveIn, Vec_Int_t
{ {
int Level0, Level1, LevelMax; int Level0, Level1, LevelMax;
Gia_Obj_t * pPivot = Gia_ManObj( p, iPivot ); Gia_Obj_t * pPivot = Gia_ManObj( p, iPivot );
if ( Gia_ObjIsCi(pPivot) ) if ( Gia_ObjIsCi(pPivot) || iPivot == 0 )
return 0; return 0;
if ( Gia_ObjLevel(p, pPivot) ) if ( Gia_ObjLevel(p, pPivot) )
return Gia_ObjLevel(p, pPivot); return Gia_ObjLevel(p, pPivot);
......
...@@ -1864,7 +1864,7 @@ finalize: ...@@ -1864,7 +1864,7 @@ finalize:
Cec4_ManDestroy( pMan ); Cec4_ManDestroy( pMan );
//Gia_ManStaticFanoutStop( p ); //Gia_ManStaticFanoutStop( p );
//Gia_ManEquivPrintClasses( p, 1, 0 ); //Gia_ManEquivPrintClasses( p, 1, 0 );
if ( *ppNew == NULL ) if ( ppNew && *ppNew == NULL )
*ppNew = Gia_ManDup(p); *ppNew = Gia_ManDup(p);
return p->pCexSeq ? 0 : 1; return p->pCexSeq ? 0 : 1;
} }
......
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