diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-09-08 09:33:11 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-09-08 09:33:11 -0700 |
commit | a5e93ff0754c560e06ff27697b001349edef8ce1 (patch) | |
tree | 4bbcf2cb1a9004dd569a5c26feb6857e22866d7a /src/opt/dar | |
parent | 233e12610a8978234da50116a7361d915411597c (diff) | |
download | abc-a5e93ff0754c560e06ff27697b001349edef8ce1.tar.gz abc-a5e93ff0754c560e06ff27697b001349edef8ce1.tar.bz2 abc-a5e93ff0754c560e06ff27697b001349edef8ce1.zip |
Corner-case bug fix in balancing.
Diffstat (limited to 'src/opt/dar')
-rw-r--r-- | src/opt/dar/darBalance.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opt/dar/darBalance.c b/src/opt/dar/darBalance.c index 4c77ab56..f51a7852 100644 --- a/src/opt/dar/darBalance.c +++ b/src/opt/dar/darBalance.c @@ -81,6 +81,8 @@ void Dar_BalanceUniqify( Aig_Obj_t * pObj, Vec_Ptr_t * vNodes, int fExor ) i++; } Vec_PtrShrink( vNodes, k ); + if ( Vec_PtrSize(vNodes) < 2 ) + return; // check that there is no duplicates pTemp = (Aig_Obj_t *)Vec_PtrEntry( vNodes, 0 ); Vec_PtrForEachEntryStart( Aig_Obj_t *, vNodes, pTempNext, i, 1 ) |