Commit 57d65f73 by Alan Mishchenko

Expriments with functions.

parent 0edf9a50
...@@ -143,7 +143,7 @@ Vec_Int_t * Dtt_ManCollect( Dtt_Man_t * p, unsigned Truth, Vec_Int_t * vFuns ) ...@@ -143,7 +143,7 @@ Vec_Int_t * Dtt_ManCollect( Dtt_Man_t * p, unsigned Truth, Vec_Int_t * vFuns )
for ( k = 0; k < p->nComps; k++ ) for ( k = 0; k < p->nComps; k++ )
{ {
unsigned tTemp = (unsigned)(tCur & 1 ? ~tCur : tCur); unsigned tTemp = (unsigned)(tCur & 1 ? ~tCur : tCur);
//if ( Dtt_ManCheckHash( p, tTemp ) ) if ( Dtt_ManCheckHash( p, tTemp ) )
Vec_IntPush( vFuns, tTemp ); Vec_IntPush( vFuns, tTemp );
tCur = Abc_Tt6Flip( tCur, p->pComps[k] ); tCur = Abc_Tt6Flip( tCur, p->pComps[k] );
} }
...@@ -233,7 +233,7 @@ void Dtt_EnumerateLf( int nVars, int nNodeMax, int fVerbose ) ...@@ -233,7 +233,7 @@ void Dtt_EnumerateLf( int nVars, int nNodeMax, int fVerbose )
Dtt_PrintStats(0, nVars, p->vFunNodes, nSteps, clk); Dtt_PrintStats(0, nVars, p->vFunNodes, nSteps, clk);
for ( n = 1; n < nNodeMax; n++ ) for ( n = 1; n < nNodeMax; n++ )
{ {
for ( i = 0, j = n - 1; i < n; i++, j-- ) for ( i = 0, j = n - 1; i < n; i++, j-- ) if ( i <= j )
{ {
Vec_Int_t * vFaninI = Vec_WecEntry( p->vFunNodes, i ); Vec_Int_t * vFaninI = Vec_WecEntry( p->vFunNodes, i );
Vec_Int_t * vFaninJ = Vec_WecEntry( p->vFunNodes, j ); Vec_Int_t * vFaninJ = Vec_WecEntry( p->vFunNodes, j );
......
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