diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-28 21:55:40 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-28 21:55:40 -0800 |
commit | de984d7f904af9cd90ea03986fe1312e8df2709f (patch) | |
tree | 2b7ec0a69ff33a80027f8e4c86de27b401323620 /src/aig | |
parent | 6119f7068aea9f844ebe9b9dc6126d2883c4fecb (diff) | |
download | abc-de984d7f904af9cd90ea03986fe1312e8df2709f.tar.gz abc-de984d7f904af9cd90ea03986fe1312e8df2709f.tar.bz2 abc-de984d7f904af9cd90ea03986fe1312e8df2709f.zip |
Fixing corner-case bugs in &srm -s.
Diffstat (limited to 'src/aig')
-rw-r--r-- | src/aig/gia/giaEquiv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/aig/gia/giaEquiv.c b/src/aig/gia/giaEquiv.c index ba34fc6b..383d4e8d 100644 --- a/src/aig/gia/giaEquiv.c +++ b/src/aig/gia/giaEquiv.c @@ -954,7 +954,8 @@ Gia_Man_t * Gia_ManSpecReduce( Gia_Man_t * p, int fDualOut, int fSynthesis, int Vec_IntForEachEntry( vGuide, iLit, i ) if ( iLit ) nAddPos++; - assert( Gia_ManPoNum(pNew) == Gia_ManPoNum(p) + nAddPos ); + if ( nAddPos ) + assert( Gia_ManPoNum(pNew) == Gia_ManPoNum(p) + nAddPos ); } Vec_IntFreeP( &vTrace ); Vec_IntFreeP( &vGuide ); |