mirror of https://github.com/YosysHQ/abc.git
Intersection a bug in rewrite/refactor.
This commit is contained in:
parent
bcf21e4677
commit
3186a82f65
|
|
@ -859,7 +859,7 @@ int Abc_AigReplace( Abc_Aig_t * pMan, Abc_Obj_t * pOld, Abc_Obj_t * pNew, int fU
|
||||||
{
|
{
|
||||||
pOld = (Abc_Obj_t *)Vec_PtrPop( pMan->vStackReplaceOld );
|
pOld = (Abc_Obj_t *)Vec_PtrPop( pMan->vStackReplaceOld );
|
||||||
pNew = (Abc_Obj_t *)Vec_PtrPop( pMan->vStackReplaceNew );
|
pNew = (Abc_Obj_t *)Vec_PtrPop( pMan->vStackReplaceNew );
|
||||||
if ( Abc_ObjFanoutNum(pOld) != 0 )
|
if ( Abc_ObjFanoutNum(pOld) == 0 )
|
||||||
return 0;
|
return 0;
|
||||||
Abc_AigReplace_int( pMan, pOld, pNew, fUpdateLevel );
|
Abc_AigReplace_int( pMan, pOld, pNew, fUpdateLevel );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue