21 #ifndef ABC__aig__tim__timInt_h
22 #define ABC__aig__tim__timInt_h
107 #define Tim_ManForEachCi( p, pObj, i ) \
108 for ( i = 0; (i < (p)->nCis) && ((pObj) = (p)->pCis + i); i++ )
109 #define Tim_ManForEachCo( p, pObj, i ) \
110 for ( i = 0; (i < (p)->nCos) && ((pObj) = (p)->pCos + i); i++ )
112 #define Tim_ManForEachPi( p, pObj, i ) \
113 Tim_ManForEachCi( p, pObj, i ) if ( pObj->iObj2Box >= 0 ) {} else
114 #define Tim_ManForEachPo( p, pObj, i ) \
115 Tim_ManForEachCo( p, pObj, i ) if ( pObj->iObj2Box >= 0 ) {} else
117 #define Tim_ManForEachBox( p, pBox, i ) \
118 Vec_PtrForEachEntry( Tim_Box_t *, p->vBoxes, pBox, i )
120 #define Tim_ManBoxForEachInput( p, pBox, pObj, i ) \
121 for ( i = 0; (i < (pBox)->nInputs) && ((pObj) = Tim_ManBoxInput(p, pBox, i)); i++ )
122 #define Tim_ManBoxForEachOutput( p, pBox, pObj, i ) \
123 for ( i = 0; (i < (pBox)->nOutputs) && ((pObj) = Tim_ManBoxOutput(p, pBox, i)); i++ )
125 #define Tim_ManForEachTable( p, pTable, i ) \
126 Vec_PtrForEachEntry( float *, p->vDelayTables, pTable, i )
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
static Tim_Box_t * Tim_ManCiBox(Tim_Man_t *p, int i)
static Tim_Box_t * Tim_ManCoBox(Tim_Man_t *p, int i)
static Tim_Obj_t * Tim_ManBoxOutput(Tim_Man_t *p, Tim_Box_t *pBox, int i)
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
static Tim_Obj_t * Tim_ManCi(Tim_Man_t *p, int i)
MACRO DEFINITIONS ///.
static Tim_Box_t * Tim_ManBox(Tim_Man_t *p, int i)
#define ABC_NAMESPACE_HEADER_END
static void * Vec_PtrEntry(Vec_Ptr_t *p, int i)
static Tim_Obj_t * Tim_ManCo(Tim_Man_t *p, int i)
typedefABC_NAMESPACE_HEADER_START struct Tim_Man_t_ Tim_Man_t
INCLUDES ///.
static Tim_Obj_t * Tim_ManBoxInput(Tim_Man_t *p, Tim_Box_t *pBox, int i)
typedefABC_NAMESPACE_HEADER_START struct Tim_Box_t_ Tim_Box_t
INCLUDES ///.