summaryrefslogtreecommitdiffstats
path: root/src/bool
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-08-23 22:20:27 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-08-23 22:20:27 -0700
commit12c776ed6e5a17a491fdb986ccce99649a06850e (patch)
tree145b38b8bc8af627be07e3d615fb3934cb66a6f7 /src/bool
parent261bd7f86555e2e0550fd622806d5995a8a8c390 (diff)
downloadabc-12c776ed6e5a17a491fdb986ccce99649a06850e.tar.gz
abc-12c776ed6e5a17a491fdb986ccce99649a06850e.tar.bz2
abc-12c776ed6e5a17a491fdb986ccce99649a06850e.zip
Added new algorithm for NPN semi-canonical form computation.
Diffstat (limited to 'src/bool')
-rw-r--r--src/bool/kit/kitTruth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bool/kit/kitTruth.c b/src/bool/kit/kitTruth.c
index bd8bbb1c..258207c2 100644
--- a/src/bool/kit/kitTruth.c
+++ b/src/bool/kit/kitTruth.c
@@ -1685,7 +1685,7 @@ unsigned Kit_TruthSemiCanonicize( unsigned * pInOut, unsigned * pAux, int nVars,
// canonicize phase
for ( i = 0; i < nVars; i++ )
{
- if ( pStore[2*i+0] <= pStore[2*i+1] )
+ if ( pStore[2*i+0] >= pStore[2*i+1] )
continue;
uCanonPhase |= (1 << i);
Temp = pStore[2*i+0];
@@ -1703,7 +1703,7 @@ unsigned Kit_TruthSemiCanonicize( unsigned * pInOut, unsigned * pAux, int nVars,
fChange = 0;
for ( i = 0; i < nVars-1; i++ )
{
- if ( pStore[2*i] <= pStore[2*(i+1)] )
+ if ( pStore[2*i] >= pStore[2*(i+1)] )
continue;
Counter++;
fChange = 1;