48 unsigned char * pStop;
49 int i, Item, fProved, iRepr, iNode;
53 for ( i = 0; i < nSize; i++ )
56 while ( *ppPos < pStop )
69 pReprs[iNode].
fProved = fProved;
70 pReprs[iNode].
iRepr = iRepr;
77 unsigned char * pBuffer;
78 int iRepr, iNode, iPrevRepr, iPrevNode, iLit, nItems, iPos;
90 pBuffer =
ABC_ALLOC(
unsigned char,
sizeof(
int) * (nItems + 10) );
106 iPrevRepr = iPrevNode = iRepr;
140 return iPrev + (Item >> 1);
141 return iPrev - (Item >> 1);
146 unsigned char * pStop;
147 int k, j, nFanins, nAlloc, iNode = 0, iOffset = nSize;
150 nAlloc = nSize + pStop - *ppPos;
152 while ( *ppPos < pStop )
156 for ( j = 0; j <= nFanins; j++ )
158 pMapping[iNode] = iOffset;
161 assert( iOffset <= nAlloc );
172 unsigned char * pBuffer;
173 int i, k, iPrev, iFan, nItems, iPos = 4;
179 pBuffer =
ABC_ALLOC(
unsigned char,
sizeof(
int) * (nItems + 1) );
221 int * pMapping =
ABC_ALLOC(
int, nSize/4 );
222 memcpy( pMapping, *ppPos, nSize );
247 int * pMapping, nLuts, LutSize, iRoot, nFanins, i, k, nOffset;
250 pMapping =
ABC_CALLOC(
int, nObjs + (LutSize + 2) * nLuts );
252 for ( i = 0; i < nLuts; i++ )
256 pMapping[iRoot] = nOffset;
258 pMapping[ nOffset++ ] = nFanins;
259 for ( k = 0; k < nFanins; k++ )
263 pMapping[ nOffset++ ] = iRoot;
269 unsigned char * pBuffer;
270 int i, k, iFan, nLuts = 0, LutSize = 0, nSize = 2, nSize2 = 0;
277 pBuffer =
ABC_ALLOC(
unsigned char, 4 * nSize );
287 assert( nSize2 == nSize );
307 for ( i = 0; i < nSize/4; i++, *ppPos += 4 )
314 int i, Entry, nSize = 0;
static int * Vec_IntArray(Vec_Int_t *p)
static void Gia_AigerWriteInt(unsigned char *pPos, int Value)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static Vec_Int_t * Vec_IntAllocArray(int *pArray, int nSize)
Vec_Str_t * Gia_AigerWriteMappingDoc(Gia_Man_t *p)
static int Abc_Var2Lit(int Var, int fCompl)
unsigned char * Gia_AigerWriteMappingInt(Gia_Man_t *p, int *pMapSize)
static int Gia_ObjIsHead(Gia_Man_t *p, int Id)
static unsigned Gia_AigerReadDiffValue(unsigned char **ppPos, int iPrev)
#define ABC_ALLOC(type, num)
ABC_NAMESPACE_IMPL_START Gia_Rpr_t * Gia_AigerReadEquivClasses(unsigned char **ppPos, int nSize)
DECLARATIONS ///.
int * Gia_AigerReadMapping(unsigned char **ppPos, int nSize)
static int Abc_MaxInt(int a, int b)
#define Gia_ManForEachLut(p, i)
unsigned char * Gia_WriteEquivClassesInt(Gia_Man_t *p, int *pEquivSize)
Vec_Str_t * Gia_AigerWriteMappingSimple(Gia_Man_t *p)
static int Gia_AigerReadInt(unsigned char *pPos)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
static int Gia_ObjLutSize(Gia_Man_t *p, int Id)
static int Gia_ObjIsConst(Gia_Man_t *p, int Id)
#define ABC_NAMESPACE_IMPL_END
Vec_Str_t * Gia_AigerWriteMapping(Gia_Man_t *p)
#define Gia_ClassForEachObj1(p, i, iObj)
Vec_Str_t * Gia_WriteEquivClasses(Gia_Man_t *p)
static void Vec_IntPush(Vec_Int_t *p, int Entry)
Vec_Int_t * Gia_AigerReadMappingDoc(unsigned char **ppPos, int nObjs)
#define Gia_ClassForEachObj(p, i, iObj)
#define ABC_NAMESPACE_IMPL_START
static int Vec_IntSize(Vec_Int_t *p)
static int Gia_ManHasMapping(Gia_Man_t *p)
static int Gia_AigerWriteDiffValue(unsigned char *pPos, int iPos, int iPrev, int iThis)
#define ABC_CALLOC(type, num)
#define Gia_ManForEachClass(p, i)
static int Gia_ObjProved(Gia_Man_t *p, int Id)
int * Gia_AigerReadMappingSimple(unsigned char **ppPos, int nSize)
static unsigned Gia_AigerReadUnsigned(unsigned char **ppPos)
static int Gia_AigerWriteUnsignedBuffer(unsigned char *pBuffer, int Pos, unsigned x)
Vec_Str_t * Gia_WritePacking(Vec_Int_t *vPacking)
#define Vec_IntForEachEntry(vVec, Entry, i)
MACRO DEFINITIONS ///.
#define Gia_LutForEachFanin(p, i, iFan, k)
static Vec_Str_t * Vec_StrAllocArray(char *pArray, int nSize)
Vec_Int_t * Gia_AigerReadPacking(unsigned char **ppPos, int nSize)
static int Gia_ManObjNum(Gia_Man_t *p)