diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-11-13 00:10:34 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-11-13 00:10:34 -0800 |
commit | c7a7444211b7906da6e8a3097c6a7d52b44a9405 (patch) | |
tree | 6625ac51fe5050a3ddd4fcc9741573ea22e118be /src | |
parent | 21de66600594c8779d3b5eedbb75b0c2466fca1d (diff) | |
download | abc-c7a7444211b7906da6e8a3097c6a7d52b44a9405.tar.gz abc-c7a7444211b7906da6e8a3097c6a7d52b44a9405.tar.bz2 abc-c7a7444211b7906da6e8a3097c6a7d52b44a9405.zip |
Bug fix in GLA PBA.
Diffstat (limited to 'src')
-rw-r--r-- | src/aig/gia/giaDup.c | 1 | ||||
-rw-r--r-- | src/aig/saig/saigGlaCba.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/aig/gia/giaDup.c b/src/aig/gia/giaDup.c index e64ba002..258687fe 100644 --- a/src/aig/gia/giaDup.c +++ b/src/aig/gia/giaDup.c @@ -1685,6 +1685,7 @@ Gia_Man_t * Gia_ManDupAbsGates( Gia_Man_t * p, Vec_Int_t * vGateClasses ) pCopy = Gia_ObjCopy( pTemp, pObj ); if ( !~pCopy->Value ) { + Vec_IntWriteEntry( vGateClasses, i, 0 ); pObj->Value = ~0; continue; } diff --git a/src/aig/saig/saigGlaCba.c b/src/aig/saig/saigGlaCba.c index a2c434c5..d5a94acb 100644 --- a/src/aig/saig/saigGlaCba.c +++ b/src/aig/saig/saigGlaCba.c @@ -280,6 +280,8 @@ Aig_Man_t * Aig_Gla1DeriveAbs( Aig_Gla1Man_t * p ) Aig_ManSetRegNum( pNew, Vec_IntSize(p->vFlops) ); // clean up RetValue = Aig_ManCleanup( pNew ); + if ( RetValue > 0 ) + printf( "Aig_Gla1DeriveAbs(): Internal error! Object count mismatch.\n" ); assert( RetValue == 0 ); return pNew; } |