Commit d5276971 by Alan Mishchenko

Accidentally losing flop info while rehashing AIG.

parent d1462693
...@@ -794,15 +794,19 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fGiaSi ...@@ -794,15 +794,19 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fGiaSi
if ( !fGiaSimple && !fSkipStrash && Gia_ManHasDangling(pNew) ) if ( !fGiaSimple && !fSkipStrash && Gia_ManHasDangling(pNew) )
{ {
Tim_Man_t * pManTime; Tim_Man_t * pManTime;
Vec_Int_t * vFlopMap, * vGateMap, * vObjMap; Vec_Int_t * vFlopMap, * vGateMap, * vObjMap, * vRegClasses, * vRegInits;
vFlopMap = pNew->vFlopClasses; pNew->vFlopClasses = NULL; vRegClasses = pNew->vRegClasses; pNew->vRegClasses = NULL;
vGateMap = pNew->vGateClasses; pNew->vGateClasses = NULL; vRegInits = pNew->vRegInits; pNew->vRegInits = NULL;
vObjMap = pNew->vObjClasses; pNew->vObjClasses = NULL; vFlopMap = pNew->vFlopClasses; pNew->vFlopClasses = NULL;
pManTime = (Tim_Man_t *)pNew->pManTime; pNew->pManTime = NULL; vGateMap = pNew->vGateClasses; pNew->vGateClasses = NULL;
vObjMap = pNew->vObjClasses; pNew->vObjClasses = NULL;
pManTime = (Tim_Man_t *)pNew->pManTime; pNew->pManTime = NULL;
pNew = Gia_ManCleanup( pTemp = pNew ); pNew = Gia_ManCleanup( pTemp = pNew );
if ( (vGateMap || vObjMap) && (Gia_ManObjNum(pNew) < Gia_ManObjNum(pTemp)) ) if ( (vGateMap || vObjMap) && (Gia_ManObjNum(pNew) < Gia_ManObjNum(pTemp)) )
printf( "Cleanup removed objects after reading. Old gate/object abstraction maps are invalid!\n" ); printf( "Cleanup removed objects after reading. Old gate/object abstraction maps are invalid!\n" );
Gia_ManStop( pTemp ); Gia_ManStop( pTemp );
pNew->vRegClasses = vRegClasses;
pNew->vRegInits = vRegInits;
pNew->vFlopClasses = vFlopMap; pNew->vFlopClasses = vFlopMap;
pNew->vGateClasses = vGateMap; pNew->vGateClasses = vGateMap;
pNew->vObjClasses = vObjMap; pNew->vObjClasses = vObjMap;
......
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