mirror of https://github.com/YosysHQ/abc.git
Fixing assertion failure in Abc_NtkBddToSop.
This commit is contained in:
parent
819c0ccab2
commit
8c1e81a7c8
|
|
@ -408,6 +408,10 @@ int Abc_NtkBddToSop( Abc_Ntk_t * pNtk, int fMode, int nCubeLimit )
|
|||
Vec_StrFree( vCube );
|
||||
return 0;
|
||||
}
|
||||
// it may happen that a constant node was created after structural mapping
|
||||
if ( Abc_SopGetVarNum((char *)pNode->pNext) == 0 )
|
||||
pNode->vFanins.nSize = 0;
|
||||
// check the support
|
||||
if ( Abc_ObjFaninNum(pNode) != Abc_SopGetVarNum((char *)pNode->pNext) )
|
||||
{
|
||||
printf( "Node %d with level %d has %d fanins but its SOP has support size %d.\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue