Commit 9acc242e by Alan Mishchenko

Assering valid fanins during MiniLUT construction.

parent 0e787224
...@@ -97,6 +97,8 @@ static void Mini_LutPush( Mini_Lut_t * p, int nVars, int * pVars, unsigned * pTr ...@@ -97,6 +97,8 @@ static void Mini_LutPush( Mini_Lut_t * p, int nVars, int * pVars, unsigned * pTr
Mini_LutGrow( p, 2 * p->nCap ); Mini_LutGrow( p, 2 * p->nCap );
} }
for ( i = 0; i < nVars; i++ ) for ( i = 0; i < nVars; i++ )
assert( pVars[i] >= 0 && pVars[i] < p->nSize );
for ( i = 0; i < nVars; i++ )
p->pArray[p->LutSize * p->nSize + i] = pVars[i]; p->pArray[p->LutSize * p->nSize + i] = pVars[i];
for ( ; i < p->LutSize; i++ ) for ( ; i < p->LutSize; i++ )
p->pArray[p->LutSize * p->nSize + i] = MINI_LUT_NULL; p->pArray[p->LutSize * p->nSize + i] = MINI_LUT_NULL;
......
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