89 int i, nNodes, nAnds, nBufferSize;
90 unsigned * pBufferNode;
93 pFile = fopen( pFileName,
"wb" );
96 fprintf( stdout,
"Io_WriteBaf(): Cannot open the output file \"%s\".\n", pFileName );
101 fprintf( pFile,
"# BAF (Binary Aig Format) for \"%s\" written by ABC on %s\n", pNtk->
pName,
Extra_TimeStamp() );
104 fprintf( pFile,
"%s%c", pNtk->
pName, 0 );
139 pBufferNode =
ABC_ALLOC(
unsigned, nBufferSize );
158 assert( nBufferSize == nAnds );
161 fwrite( pBufferNode, 1,
sizeof(
int) * nBufferSize, pFile );
static int Abc_NtkIsStrash(Abc_Ntk_t *pNtk)
ABC_NAMESPACE_IMPL_START void Io_WriteBaf(Abc_Ntk_t *pNtk, char *pFileName)
DECLARATIONS ///.
static Abc_Obj_t * Abc_ObjFanin1(Abc_Obj_t *pObj)
static int Abc_ObjFaninC1(Abc_Obj_t *pObj)
static int Abc_ObjIsLatch(Abc_Obj_t *pObj)
static int Abc_ObjFanoutNum(Abc_Obj_t *pObj)
static int Abc_NtkLatchNum(Abc_Ntk_t *pNtk)
static int Abc_ObjFaninC0(Abc_Obj_t *pObj)
#define ABC_ALLOC(type, num)
#define Abc_NtkForEachCo(pNtk, pCo, i)
static Abc_Obj_t * Abc_ObjFanin0(Abc_Obj_t *pObj)
static int Abc_NtkCoNum(Abc_Ntk_t *pNtk)
#define Abc_AigForEachAnd(pNtk, pNode, i)
static int Abc_NtkNodeNum(Abc_Ntk_t *pNtk)
#define ABC_NAMESPACE_IMPL_END
#define Abc_NtkForEachLatch(pNtk, pObj, i)
#define ABC_NAMESPACE_IMPL_START
#define Abc_NtkForEachCi(pNtk, pCi, i)
static int Abc_NtkPoNum(Abc_Ntk_t *pNtk)
static int Abc_NtkPiNum(Abc_Ntk_t *pNtk)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
ABC_DLL void Abc_NtkCleanCopy(Abc_Ntk_t *pNtk)
static void * Abc_ObjData(Abc_Obj_t *pObj)
#define Abc_NtkForEachPo(pNtk, pPo, i)
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)
#define Abc_NtkForEachPi(pNtk, pPi, i)