Commit 5e0d7dad by Alan Mishchenko

Assertion failure in 'write_hie' with blackboxes.

parent 17c78313
...@@ -1143,6 +1143,8 @@ int Abc_NtkSopToBlifMv( Abc_Ntk_t * pNtk ) ...@@ -1143,6 +1143,8 @@ int Abc_NtkSopToBlifMv( Abc_Ntk_t * pNtk )
int Abc_NtkToSop( Abc_Ntk_t * pNtk, int fDirect, int nCubeLimit ) int Abc_NtkToSop( Abc_Ntk_t * pNtk, int fDirect, int nCubeLimit )
{ {
assert( !Abc_NtkIsStrash(pNtk) ); assert( !Abc_NtkIsStrash(pNtk) );
if ( Abc_NtkHasBlackbox(pNtk) )
return 1;
if ( Abc_NtkHasSop(pNtk) ) if ( Abc_NtkHasSop(pNtk) )
{ {
if ( !fDirect ) if ( !fDirect )
...@@ -1179,6 +1181,8 @@ int Abc_NtkToSop( Abc_Ntk_t * pNtk, int fDirect, int nCubeLimit ) ...@@ -1179,6 +1181,8 @@ int Abc_NtkToSop( Abc_Ntk_t * pNtk, int fDirect, int nCubeLimit )
int Abc_NtkToBdd( Abc_Ntk_t * pNtk ) int Abc_NtkToBdd( Abc_Ntk_t * pNtk )
{ {
assert( !Abc_NtkIsStrash(pNtk) ); assert( !Abc_NtkIsStrash(pNtk) );
if ( Abc_NtkHasBlackbox(pNtk) )
return 1;
if ( Abc_NtkHasBdd(pNtk) ) if ( Abc_NtkHasBdd(pNtk) )
return 1; return 1;
if ( Abc_NtkHasMapping(pNtk) ) if ( Abc_NtkHasMapping(pNtk) )
...@@ -1211,6 +1215,8 @@ int Abc_NtkToBdd( Abc_Ntk_t * pNtk ) ...@@ -1211,6 +1215,8 @@ int Abc_NtkToBdd( Abc_Ntk_t * pNtk )
int Abc_NtkToAig( Abc_Ntk_t * pNtk ) int Abc_NtkToAig( Abc_Ntk_t * pNtk )
{ {
assert( !Abc_NtkIsStrash(pNtk) ); assert( !Abc_NtkIsStrash(pNtk) );
if ( Abc_NtkHasBlackbox(pNtk) )
return 1;
if ( Abc_NtkHasAig(pNtk) ) if ( Abc_NtkHasAig(pNtk) )
return 1; return 1;
if ( Abc_NtkHasMapping(pNtk) ) if ( Abc_NtkHasMapping(pNtk) )
......
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