mirror of https://github.com/YosysHQ/abc.git
Fixed a corner-case bug in Aug 5 commit (3daecc0).
This commit is contained in:
parent
a603186d8e
commit
a7aa3deac9
|
|
@ -904,10 +904,13 @@ void Abc_AigReplace_int( Abc_Aig_t * pMan, Abc_Obj_t * pOld, Abc_Obj_t * pNew, i
|
||||||
{
|
{
|
||||||
Abc_ObjSetReverseLevel( pFanin1, Abc_ObjReverseLevel(pOld) );
|
Abc_ObjSetReverseLevel( pFanin1, Abc_ObjReverseLevel(pOld) );
|
||||||
assert( pFanin1->fMarkB == 0 );
|
assert( pFanin1->fMarkB == 0 );
|
||||||
pFanin1->fMarkB = 1;
|
if ( !Abc_ObjIsCi(pFanin1) )
|
||||||
Vec_VecPush( pMan->vLevelsR, Abc_ObjReverseLevel(pFanin1), pFanin1 );
|
{
|
||||||
|
pFanin1->fMarkB = 1;
|
||||||
|
Vec_VecPush( pMan->vLevelsR, Abc_ObjReverseLevel(pFanin1), pFanin1 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Abc_ObjPatchFanin( pFanout, pOld, pNew );
|
Abc_ObjPatchFanin( pFanout, pOld, pNew );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// find the old node as a fanin of this fanout
|
// find the old node as a fanin of this fanout
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue