Go to the source code of this file.
|
ABC_NAMESPACE_IMPL_START
Gia_Rpr_t * | Gia_AigerReadEquivClasses (unsigned char **ppPos, int nSize) |
| DECLARATIONS ///. More...
|
|
unsigned char * | Gia_WriteEquivClassesInt (Gia_Man_t *p, int *pEquivSize) |
|
Vec_Str_t * | Gia_WriteEquivClasses (Gia_Man_t *p) |
|
static unsigned | Gia_AigerReadDiffValue (unsigned char **ppPos, int iPrev) |
|
int * | Gia_AigerReadMapping (unsigned char **ppPos, int nSize) |
|
static int | Gia_AigerWriteDiffValue (unsigned char *pPos, int iPos, int iPrev, int iThis) |
|
unsigned char * | Gia_AigerWriteMappingInt (Gia_Man_t *p, int *pMapSize) |
|
Vec_Str_t * | Gia_AigerWriteMapping (Gia_Man_t *p) |
|
int * | Gia_AigerReadMappingSimple (unsigned char **ppPos, int nSize) |
|
Vec_Str_t * | Gia_AigerWriteMappingSimple (Gia_Man_t *p) |
|
Vec_Int_t * | Gia_AigerReadMappingDoc (unsigned char **ppPos, int nObjs) |
|
Vec_Str_t * | Gia_AigerWriteMappingDoc (Gia_Man_t *p) |
|
Vec_Int_t * | Gia_AigerReadPacking (unsigned char **ppPos, int nSize) |
|
Vec_Str_t * | Gia_WritePacking (Vec_Int_t *vPacking) |
|
static unsigned Gia_AigerReadDiffValue |
( |
unsigned char ** |
ppPos, |
|
|
int |
iPrev |
|
) |
| |
|
inlinestatic |
Function*************************************************************
Synopsis [Read/write mapping information.]
Description []
SideEffects []
SeeAlso []
Definition at line 136 of file giaAigerExt.c.
140 return iPrev + (Item >> 1);
141 return iPrev - (Item >> 1);
static unsigned Gia_AigerReadUnsigned(unsigned char **ppPos)
DECLARATIONS ///.
CFile****************************************************************
FileName [giaAigerExt.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Scalable AIG package.]
Synopsis [Custom AIGER extensions.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
- Id:
- giaAigerExt.c,v 1.00 2005/06/20 00:00:00 alanmi Exp
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Read/write equivalence classes information.]
Description []
SideEffects []
SeeAlso []
Definition at line 45 of file giaAigerExt.c.
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;
static int Gia_AigerReadInt(unsigned char *pPos)
#define ABC_CALLOC(type, num)
static unsigned Gia_AigerReadUnsigned(unsigned char **ppPos)
int* Gia_AigerReadMapping |
( |
unsigned char ** |
ppPos, |
|
|
int |
nSize |
|
) |
| |
Definition at line 143 of file giaAigerExt.c.
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 );
static unsigned Gia_AigerReadDiffValue(unsigned char **ppPos, int iPrev)
static int Gia_AigerReadInt(unsigned char *pPos)
#define ABC_CALLOC(type, num)
static unsigned Gia_AigerReadUnsigned(unsigned char **ppPos)
Vec_Int_t* Gia_AigerReadMappingDoc |
( |
unsigned char ** |
ppPos, |
|
|
int |
nObjs |
|
) |
| |
Function*************************************************************
Synopsis [Read/write mapping information.]
Description []
SideEffects []
SeeAlso []
Definition at line 245 of file giaAigerExt.c.
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;
static Vec_Int_t * Vec_IntAllocArray(int *pArray, int nSize)
static int Gia_AigerReadInt(unsigned char *pPos)
#define ABC_CALLOC(type, num)
int* Gia_AigerReadMappingSimple |
( |
unsigned char ** |
ppPos, |
|
|
int |
nSize |
|
) |
| |
Function*************************************************************
Synopsis [Read/write mapping information.]
Description []
SideEffects []
SeeAlso []
Definition at line 219 of file giaAigerExt.c.
221 int * pMapping =
ABC_ALLOC(
int, nSize/4 );
222 memcpy( pMapping, *ppPos, nSize );
#define ABC_ALLOC(type, num)
Vec_Int_t* Gia_AigerReadPacking |
( |
unsigned char ** |
ppPos, |
|
|
int |
nSize |
|
) |
| |
Function*************************************************************
Synopsis [Read/write packing information.]
Description []
SideEffects []
SeeAlso []
Definition at line 302 of file giaAigerExt.c.
307 for ( i = 0; i < nSize/4; i++, *ppPos += 4 )
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static int Gia_AigerReadInt(unsigned char *pPos)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
static void Vec_IntPush(Vec_Int_t *p, int Entry)
static int Gia_AigerWriteDiffValue |
( |
unsigned char * |
pPos, |
|
|
int |
iPos, |
|
|
int |
iPrev, |
|
|
int |
iThis |
|
) |
| |
|
inlinestatic |
Definition at line 164 of file giaAigerExt.c.
static int Abc_Var2Lit(int Var, int fCompl)
static int Gia_AigerWriteUnsignedBuffer(unsigned char *pBuffer, int Pos, unsigned x)
Definition at line 201 of file giaAigerExt.c.
unsigned char * Gia_AigerWriteMappingInt(Gia_Man_t *p, int *pMapSize)
static Vec_Str_t * Vec_StrAllocArray(char *pArray, int nSize)
Definition at line 267 of file giaAigerExt.c.
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 );
static void Gia_AigerWriteInt(unsigned char *pPos, int Value)
#define ABC_ALLOC(type, num)
static int Abc_MaxInt(int a, int b)
#define Gia_ManForEachLut(p, i)
static int Gia_ObjLutSize(Gia_Man_t *p, int Id)
#define Gia_LutForEachFanin(p, i, iFan, k)
static Vec_Str_t * Vec_StrAllocArray(char *pArray, int nSize)
unsigned char* Gia_AigerWriteMappingInt |
( |
Gia_Man_t * |
p, |
|
|
int * |
pMapSize |
|
) |
| |
Definition at line 170 of file giaAigerExt.c.
172 unsigned char * pBuffer;
173 int i, k, iPrev, iFan, nItems, iPos = 4;
179 pBuffer =
ABC_ALLOC(
unsigned char, sizeof(
int) * (nItems + 1) );
static void Gia_AigerWriteInt(unsigned char *pPos, int Value)
#define ABC_ALLOC(type, num)
#define Gia_ManForEachLut(p, i)
static int Gia_ObjLutSize(Gia_Man_t *p, int Id)
static int Gia_ManHasMapping(Gia_Man_t *p)
static int Gia_AigerWriteDiffValue(unsigned char *pPos, int iPos, int iPrev, int iThis)
static int Gia_AigerWriteUnsignedBuffer(unsigned char *pBuffer, int Pos, unsigned x)
#define Gia_LutForEachFanin(p, i, iFan, k)
Definition at line 226 of file giaAigerExt.c.
static int * Vec_IntArray(Vec_Int_t *p)
#define ABC_ALLOC(type, num)
static int Vec_IntSize(Vec_Int_t *p)
static Vec_Str_t * Vec_StrAllocArray(char *pArray, int nSize)
static int Gia_ManObjNum(Gia_Man_t *p)
Definition at line 118 of file giaAigerExt.c.
unsigned char * Gia_WriteEquivClassesInt(Gia_Man_t *p, int *pEquivSize)
static Vec_Str_t * Vec_StrAllocArray(char *pArray, int nSize)
unsigned char* Gia_WriteEquivClassesInt |
( |
Gia_Man_t * |
p, |
|
|
int * |
pEquivSize |
|
) |
| |
Definition at line 75 of file giaAigerExt.c.
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;
static void Gia_AigerWriteInt(unsigned char *pPos, int Value)
static int Abc_Var2Lit(int Var, int fCompl)
static int Gia_ObjIsHead(Gia_Man_t *p, int Id)
#define ABC_ALLOC(type, num)
for(p=first;p->value< newval;p=p->next)
static int Gia_ObjIsConst(Gia_Man_t *p, int Id)
#define Gia_ClassForEachObj1(p, i, iObj)
#define Gia_ClassForEachObj(p, i, iObj)
#define Gia_ManForEachClass(p, i)
static int Gia_ObjProved(Gia_Man_t *p, int Id)
static int Gia_AigerWriteUnsignedBuffer(unsigned char *pBuffer, int Pos, unsigned x)
static int Gia_ManObjNum(Gia_Man_t *p)
Definition at line 311 of file giaAigerExt.c.
314 int i, Entry, nSize = 0;
static void Gia_AigerWriteInt(unsigned char *pPos, int Value)
#define ABC_ALLOC(type, num)
static int Vec_IntSize(Vec_Int_t *p)
#define Vec_IntForEachEntry(vVec, Entry, i)
MACRO DEFINITIONS ///.
static Vec_Str_t * Vec_StrAllocArray(char *pArray, int nSize)