Commit af62d29d by Alan Mishchenko

Corner-case bug fix in LUT to AIG translation.

parent bc65461c
...@@ -449,6 +449,10 @@ int Dsm_ManTruthToGia( void * p, word * pTruth, Vec_Int_t * vLeaves, Vec_Int_t * ...@@ -449,6 +449,10 @@ int Dsm_ManTruthToGia( void * p, word * pTruth, Vec_Int_t * vLeaves, Vec_Int_t *
Abc_TtCopy( pTruthCopy, pTruth, Abc_TtWordNum(Vec_IntSize(vLeaves)), 0 ); Abc_TtCopy( pTruthCopy, pTruth, Abc_TtWordNum(Vec_IntSize(vLeaves)), 0 );
m_Calls++; m_Calls++;
assert( Vec_IntSize(vLeaves) <= DAU_DSD_MAX_VAR ); assert( Vec_IntSize(vLeaves) <= DAU_DSD_MAX_VAR );
if ( Vec_IntSize(vLeaves) == 0 )
return (int)(pTruth[0] & 1);
if ( Vec_IntSize(vLeaves) == 1 )
return Abc_LitNotCond( Vec_IntEntry(vLeaves, 0), (int)(pTruth[0] & 1) );
// collect delay information // collect delay information
if ( fDelayBalance && fUseMuxes ) if ( fDelayBalance && fUseMuxes )
{ {
......
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