Adding new Python API 'is_func_iso2'.

This commit is contained in:
Alan Mishchenko
2015-07-11 19:30:52 -07:00
parent b949436f4c
commit 0d09071f14
6 changed files with 37 additions and 13 deletions
+15 -1
View File
@@ -394,7 +394,20 @@ int is_func_iso( int iCo1, int iCo2 )
return 0;
}
return Abc_NtkFunctionalIso( pNtk, iCo1, iCo2 );
return Abc_NtkFunctionalIso( pNtk, iCo1, iCo2, 0 );
}
int is_func_iso2( int iCo1, int iCo2 )
{
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc);
if ( !pNtk )
{
return 0;
}
return Abc_NtkFunctionalIso( pNtk, iCo1, iCo2, 1 );
}
void _pyabc_array_clear()
@@ -755,6 +768,7 @@ int _cex_get_frame(Abc_Cex_t* pCex);
PyObject* eq_classes();
PyObject* co_supp(int iCo);
int is_func_iso(int iCo1, int iCo2);
int is_func_iso2(int iCo1, int iCo2);
void _pyabc_array_clear();
void _pyabc_array_push(int i);