Commit 874bc274 by Alan Mishchenko

Experiments with function enumeration.

parent ac562a7b
...@@ -156,14 +156,13 @@ void Dau_AddFunction( word tCur, int nVars, unsigned * pTable, Vec_Int_t * vNpns ...@@ -156,14 +156,13 @@ void Dau_AddFunction( word tCur, int nVars, unsigned * pTable, Vec_Int_t * vNpns
word tNorm = (tCur >> Digit) & 1 ? ~tCur : tCur; word tNorm = (tCur >> Digit) & 1 ? ~tCur : tCur;
unsigned t = (unsigned)tNorm & tMask; unsigned t = (unsigned)tNorm & tMask;
unsigned tRep = pTable[t]; unsigned tRep = pTable[t];
unsigned tRep2 = pTable[tRep & tMask];
assert( ((tNorm >> Digit) & 1) == 0 ); assert( ((tNorm >> Digit) & 1) == 0 );
//assert( (tRep & (tMask>>1)) == (tRep2 & (tMask>>1)) ); if ( (tRep >> 31) == 0 ) // first time
if ( (tRep2 >> 31) == 0 ) // first time
{ {
Vec_IntPush( vNpns, tRep2 ); Vec_IntPush( vNpns, tRep );
pTable[tRep2] |= (1 << 31); pTable[tRep] |= (1 << 31);
} }
} }
void Dau_NetworkEnum() void Dau_NetworkEnum()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment