Changes and improvements to different packages.

This commit is contained in:
Alan Mishchenko 2014-06-30 00:34:51 -07:00
parent 55404ca1af
commit ce92ee2b4d
1 changed files with 25 additions and 0 deletions

View File

@ -982,6 +982,31 @@ static inline void Abc_TtFlip( word * pTruth, int nWords, int iVar )
}
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static inline word Abc_Tt6Permute_rec( word t, int * pPerm, int nVars )
{
word uRes0, uRes1; int Var;
if ( t == 0 ) return 0;
if ( ~t == 0 ) return ~(word)0;
for ( Var = nVars-1; Var >= 0; Var-- )
if ( Abc_Tt6HasVar( t, Var ) )
break;
assert( Var >= 0 );
uRes0 = Abc_Tt6Permute_rec( Abc_Tt6Cofactor0(t, Var), pPerm, Var );
uRes1 = Abc_Tt6Permute_rec( Abc_Tt6Cofactor1(t, Var), pPerm, Var );
return (uRes0 & s_Truths6Neg[pPerm[Var]]) | (uRes1 & s_Truths6[pPerm[Var]]);
}
/**Function*************************************************************
Synopsis []