Enabling additional matching feature in the LUT mapper.

This commit is contained in:
Alan Mishchenko 2013-08-13 13:01:18 -07:00
parent ee1e20ddf8
commit 9b3dd44cd6
1 changed files with 6 additions and 6 deletions

View File

@ -1796,13 +1796,13 @@ int If_CluCheckDecInU( word t, int nVars )
Cof2[1] = Abc_Tt6Cofactor1( t, v );
for ( u = v+1; u < nVars; u++ )
{
Cof4[0] = Abc_Tt6Cofactor0( Cof2[0], u );
Cof4[1] = Abc_Tt6Cofactor1( Cof2[0], u );
Cof4[2] = Abc_Tt6Cofactor0( Cof2[1], u );
Cof4[3] = Abc_Tt6Cofactor1( Cof2[1], u );
if ( Cof4[0] == Cof4[1] && Cof4[0] == Cof4[2] )
Cof4[0] = Abc_Tt6Cofactor0( Cof2[0], u ); // 00
Cof4[1] = Abc_Tt6Cofactor1( Cof2[0], u ); // 01
Cof4[2] = Abc_Tt6Cofactor0( Cof2[1], u ); // 10
Cof4[3] = Abc_Tt6Cofactor1( Cof2[1], u ); // 11
if ( Cof4[0] == Cof4[1] && Cof4[0] == Cof4[2] ) // F * a
return 1;
if ( Cof4[0] == Cof4[2] && Cof4[0] == Cof4[3] )
if ( Cof4[0] == Cof4[2] && Cof4[0] == Cof4[3] ) // !F * a
return 1;
}
}