mirror of https://github.com/YosysHQ/abc.git
Merge pull request #505 from gigeresk/lutpack_assert_fix
Fix intermittent assert failures in lutpack functions
This commit is contained in:
commit
298bcee98a
|
|
@ -141,7 +141,7 @@ unsigned * Lpk_CutTruth_rec( Hop_Man_t * pMan, Hop_Obj_t * pObj, int nVars, Vec_
|
|||
assert( !Hop_IsComplement(pObj) );
|
||||
if ( pObj->pData )
|
||||
{
|
||||
assert( ((unsigned)(ABC_PTRUINT_T)pObj->pData) & 0xffff0000 );
|
||||
assert( ((ABC_PTRUINT_T)pObj->pData) > 0xffff ); // catch small int values
|
||||
return (unsigned *)pObj->pData;
|
||||
}
|
||||
// get the plan for a new truth table
|
||||
|
|
@ -197,7 +197,7 @@ unsigned * Lpk_CutTruth( Lpk_Man_t * p, Lpk_Cut_t * pCut, int fInv )
|
|||
// set the initial truth tables at the fanins
|
||||
Abc_ObjForEachFanin( pObj, pFanin, k )
|
||||
{
|
||||
assert( ((unsigned)(ABC_PTRUINT_T)pFanin->pCopy) & 0xffff0000 );
|
||||
assert( ((ABC_PTRUINT_T)pFanin->pCopy) > 0xffff ); // catch small int values or NULL
|
||||
Hop_ManPi( pManHop, k )->pData = pFanin->pCopy;
|
||||
}
|
||||
// compute the truth table of internal nodes
|
||||
|
|
|
|||
Loading…
Reference in New Issue