Added new Python API is_const_po( int iPoNum ), which returns 0/1 if current network is an AIG and the given PO has const 0/1 function.

This commit is contained in:
Alan Mishchenko
2013-01-25 10:25:34 +07:00
parent fde8c8b2d0
commit 557448400e
3 changed files with 42 additions and 2 deletions
+7
View File
@@ -195,6 +195,12 @@ int n_phases()
return pNtk ? Abc_NtkPhaseFrameNum(pNtk) : 1;
}
int is_const_po( int iPoNum )
{
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
return Abc_FrameCheckPoConst( pAbc, iPoNum );
}
Abc_Cex_t* _cex_get()
{
Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
@@ -626,6 +632,7 @@ int cex_po();
int cex_frame();
int n_phases();
int is_const_po( int iPoNum );
Abc_Cex_t* _cex_get();
int _cex_get_vec_len();