mirror of https://github.com/YosysHQ/abc.git
Temp change in the AIG reader and minor tuning.
This commit is contained in:
parent
f6a3c28e88
commit
f4d72b2af2
|
|
@ -663,8 +663,8 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fSkipS
|
||||||
int i, nRegs;
|
int i, nRegs;
|
||||||
pCur++;
|
pCur++;
|
||||||
pCurTemp = pCur + Gia_AigerReadInt(pCur) + 4; pCur += 4;
|
pCurTemp = pCur + Gia_AigerReadInt(pCur) + 4; pCur += 4;
|
||||||
//nRegs = Gia_AigerReadInt(pCur); pCur += 4;
|
nRegs = Gia_AigerReadInt(pCur); pCur += 4;
|
||||||
nRegs = (pCurTemp - pCur)/4;
|
//nRegs = (pCurTemp - pCur)/4;
|
||||||
pNew->vRegClasses = Vec_IntAlloc( nRegs );
|
pNew->vRegClasses = Vec_IntAlloc( nRegs );
|
||||||
for ( i = 0; i < nRegs; i++ )
|
for ( i = 0; i < nRegs; i++ )
|
||||||
Vec_IntPush( pNew->vRegClasses, Gia_AigerReadInt(pCur) ), pCur += 4;
|
Vec_IntPush( pNew->vRegClasses, Gia_AigerReadInt(pCur) ), pCur += 4;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue