summaryrefslogtreecommitdiffstats
path: root/src/bool/lucky/luckySwap.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-11-02 21:55:29 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-11-02 21:55:29 -0700
commit7e9f0df3f71b525ef9d95987cf8f510f5fc218b8 (patch)
tree246126464e4a12abf51aef1e4cb588a261dc854e /src/bool/lucky/luckySwap.c
parentc899645b108e4dfcdae92a391d281735f14d0674 (diff)
downloadabc-7e9f0df3f71b525ef9d95987cf8f510f5fc218b8.tar.gz
abc-7e9f0df3f71b525ef9d95987cf8f510f5fc218b8.tar.bz2
abc-7e9f0df3f71b525ef9d95987cf8f510f5fc218b8.zip
Bug fix in semi-canonical form computation.
Diffstat (limited to 'src/bool/lucky/luckySwap.c')
-rw-r--r--src/bool/lucky/luckySwap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bool/lucky/luckySwap.c b/src/bool/lucky/luckySwap.c
index b301d9a0..88ee63e1 100644
--- a/src/bool/lucky/luckySwap.c
+++ b/src/bool/lucky/luckySwap.c
@@ -254,7 +254,7 @@ unsigned Kit_TruthSemiCanonicize_Yasha1( word* pInOut, int nVars, char * pCanon
if ( nOnes == nWords * 32 )
uCanonPhase |= (1 << (nVars+2));
- if ( (nOnes > nWords * 32) )
+ else if ( (nOnes > nWords * 32) )
{
uCanonPhase |= (1 << nVars);
Kit_TruthNot_64bit( pInOut, nVars );