abc-master
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | Vec_Ptr_t_ |
Macros | |
#define | Vec_PtrForEachEntry(Type, vVec, pEntry, i) for ( i = 0; (i < Vec_PtrSize(vVec)) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i++ ) |
MACRO DEFINITIONS ///. More... | |
#define | Vec_PtrForEachEntryStart(Type, vVec, pEntry, i, Start) for ( i = Start; (i < Vec_PtrSize(vVec)) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i++ ) |
#define | Vec_PtrForEachEntryStop(Type, vVec, pEntry, i, Stop) for ( i = 0; (i < Stop) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i++ ) |
#define | Vec_PtrForEachEntryStartStop(Type, vVec, pEntry, i, Start, Stop) for ( i = Start; (i < Stop) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i++ ) |
#define | Vec_PtrForEachEntryReverse(Type, vVec, pEntry, i) for ( i = Vec_PtrSize(vVec) - 1; (i >= 0) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i-- ) |
#define | Vec_PtrForEachEntryTwo(Type1, vVec1, Type2, vVec2, pEntry1, pEntry2, i) for ( i = 0; (i < Vec_PtrSize(vVec1)) && (((pEntry1) = (Type1)Vec_PtrEntry(vVec1, i)), 1) && (((pEntry2) = (Type2)Vec_PtrEntry(vVec2, i)), 1); i++ ) |
Typedefs | |
typedef typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ | Vec_Ptr_t |
INCLUDES ///. More... | |
Functions | |
static Vec_Ptr_t * | Vec_PtrAlloc (int nCap) |
FUNCTION DEFINITIONS ///. More... | |
static Vec_Ptr_t * | Vec_PtrStart (int nSize) |
static Vec_Ptr_t * | Vec_PtrAllocArray (void **pArray, int nSize) |
static Vec_Ptr_t * | Vec_PtrAllocArrayCopy (void **pArray, int nSize) |
static Vec_Ptr_t * | Vec_PtrDup (Vec_Ptr_t *pVec) |
static Vec_Ptr_t * | Vec_PtrDupStr (Vec_Ptr_t *pVec) |
static Vec_Ptr_t * | Vec_PtrDupArray (Vec_Ptr_t *pVec) |
static void | Vec_PtrFree (Vec_Ptr_t *p) |
static void | Vec_PtrFreeP (Vec_Ptr_t **p) |
static void ** | Vec_PtrReleaseArray (Vec_Ptr_t *p) |
static void ** | Vec_PtrArray (Vec_Ptr_t *p) |
static int | Vec_PtrSize (Vec_Ptr_t *p) |
static int | Vec_PtrCap (Vec_Ptr_t *p) |
static double | Vec_PtrMemory (Vec_Ptr_t *p) |
static int | Vec_PtrCountZero (Vec_Ptr_t *p) |
static void * | Vec_PtrEntry (Vec_Ptr_t *p, int i) |
static void ** | Vec_PtrEntryP (Vec_Ptr_t *p, int i) |
static void | Vec_PtrWriteEntry (Vec_Ptr_t *p, int i, void *Entry) |
static void * | Vec_PtrEntryLast (Vec_Ptr_t *p) |
static void | Vec_PtrGrow (Vec_Ptr_t *p, int nCapMin) |
static void | Vec_PtrFill (Vec_Ptr_t *p, int nSize, void *Entry) |
static void | Vec_PtrFillExtra (Vec_Ptr_t *p, int nSize, void *Fill) |
static void * | Vec_PtrGetEntry (Vec_Ptr_t *p, int i) |
static void | Vec_PtrSetEntry (Vec_Ptr_t *p, int i, void *Entry) |
static void | Vec_PtrShrink (Vec_Ptr_t *p, int nSizeNew) |
static void | Vec_PtrClear (Vec_Ptr_t *p) |
static void | Vec_PtrFreeData (Vec_Ptr_t *p) |
static void | Vec_PtrFreeFree (Vec_Ptr_t *p) |
static void | Vec_PtrCopy (Vec_Ptr_t *pDest, Vec_Ptr_t *pSour) |
static void | Vec_PtrPush (Vec_Ptr_t *p, void *Entry) |
static void | Vec_PtrPushFirst (Vec_Ptr_t *p, void *Entry) |
static int | Vec_PtrPushUnique (Vec_Ptr_t *p, void *Entry) |
static void * | Vec_PtrPop (Vec_Ptr_t *p) |
static int | Vec_PtrFind (Vec_Ptr_t *p, void *Entry) |
static void | Vec_PtrRemove (Vec_Ptr_t *p, void *Entry) |
static void | Vec_PtrInsert (Vec_Ptr_t *p, int iHere, void *Entry) |
static void | Vec_PtrReorder (Vec_Ptr_t *p, int nItems) |
static void | Vec_PtrReverseOrder (Vec_Ptr_t *p) |
static int | Vec_PtrEqual (Vec_Ptr_t *p1, Vec_Ptr_t *p2) |
static int | Vec_PtrSortComparePtr (void **pp1, void **pp2) |
static void | Vec_PtrSort (Vec_Ptr_t *p, int(*Vec_PtrSortCompare)()) ___unused |
static void | Vec_PtrUniqify (Vec_Ptr_t *p, int(*Vec_PtrSortCompare)()) ___unused |
static void | Vec_PtrUniqify2 (Vec_Ptr_t *p, int(*Vec_PtrSortCompare)(void **, void **), void(*Vec_PtrObjFree)(void *), Vec_Int_t *vCounts) ___unused |
static Vec_Ptr_t * | Vec_PtrAllocSimInfo (int nEntries, int nWords) |
static int | Vec_PtrReadWordsSimInfo (Vec_Ptr_t *p) |
static void | Vec_PtrCleanSimInfo (Vec_Ptr_t *vInfo, int iWord, int nWords) |
static void | Vec_PtrFillSimInfo (Vec_Ptr_t *vInfo, int iWord, int nWords) |
static void | Vec_PtrDoubleSimInfo (Vec_Ptr_t *vInfo) |
static void | Vec_PtrReallocSimInfo (Vec_Ptr_t *vInfo) |
static Vec_Ptr_t * | Vec_PtrAllocTruthTables (int nVars) |
#define Vec_PtrForEachEntry | ( | Type, | |
vVec, | |||
pEntry, | |||
i | |||
) | for ( i = 0; (i < Vec_PtrSize(vVec)) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i++ ) |
#define Vec_PtrForEachEntryReverse | ( | Type, | |
vVec, | |||
pEntry, | |||
i | |||
) | for ( i = Vec_PtrSize(vVec) - 1; (i >= 0) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i-- ) |
#define Vec_PtrForEachEntryStart | ( | Type, | |
vVec, | |||
pEntry, | |||
i, | |||
Start | |||
) | for ( i = Start; (i < Vec_PtrSize(vVec)) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i++ ) |
#define Vec_PtrForEachEntryStartStop | ( | Type, | |
vVec, | |||
pEntry, | |||
i, | |||
Start, | |||
Stop | |||
) | for ( i = Start; (i < Stop) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i++ ) |
#define Vec_PtrForEachEntryStop | ( | Type, | |
vVec, | |||
pEntry, | |||
i, | |||
Stop | |||
) | for ( i = 0; (i < Stop) && (((pEntry) = (Type)Vec_PtrEntry(vVec, i)), 1); i++ ) |
#define Vec_PtrForEachEntryTwo | ( | Type1, | |
vVec1, | |||
Type2, | |||
vVec2, | |||
pEntry1, | |||
pEntry2, | |||
i | |||
) | for ( i = 0; (i < Vec_PtrSize(vVec1)) && (((pEntry1) = (Type1)Vec_PtrEntry(vVec1, i)), 1) && (((pEntry2) = (Type2)Vec_PtrEntry(vVec2, i)), 1); i++ ) |
typedef typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t |
INCLUDES ///.
CFile****************************************************************
FileName [vecPtr.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Resizable arrays.]
Synopsis [Resizable arrays of generic pointers.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]PARAMETERS ///BASIC TYPES ///
|
inlinestatic |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Allocates a vector with the given capacity.]
Description []
SideEffects []
SeeAlso []
Definition at line 83 of file vecPtr.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Creates the vector from an integer array of the given size.]
Description []
SideEffects []
SeeAlso []
Definition at line 126 of file vecPtr.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Creates the vector from an integer array of the given size.]
Description []
SideEffects []
SeeAlso []
Definition at line 147 of file vecPtr.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Allocates the array of simulation info.]
Description [Allocates the array containing given number of entries, each of which contains given number of unsigned words of simulation data. The resulting array can be freed using regular procedure Vec_PtrFree(). It is the responsibility of the user to ensure this array is never grown.]
SideEffects []
SeeAlso []
Definition at line 929 of file vecPtr.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Allocates the array of truth tables for the given number of vars.]
Description []
SideEffects []
SeeAlso []
Definition at line 1065 of file vecPtr.h.
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Resizes the array of simulation info.]
Description [Doubles the number of objects for which siminfo is allocated.]
SideEffects []
SeeAlso []
Definition at line 1004 of file vecPtr.h.
Function*************************************************************
Synopsis [Duplicates the integer array.]
Description []
SideEffects []
SeeAlso []
Definition at line 169 of file vecPtr.h.
Function*************************************************************
Synopsis [Transfers the array into another vector.]
Description []
SideEffects []
SeeAlso []
Definition at line 199 of file vecPtr.h.
Definition at line 179 of file vecPtr.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Checks if two vectors are equal.]
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Deallocates array of memory pointers.]
Description []
SideEffects []
SeeAlso []
Definition at line 561 of file vecPtr.h.
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Returns the entry even if the place not exist.]
Description []
SideEffects []
SeeAlso []
Definition at line 494 of file vecPtr.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 327 of file vecPtr.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Resizes the array of simulation info.]
Description [Doubles the number of simulation patterns stored for each object.]
SideEffects []
SeeAlso []
Definition at line 1035 of file vecPtr.h.
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Reverses the order of entries.]
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
Function*************************************************************
Synopsis [Inserts the entry even if the place does not exist.]
Description []
SideEffects []
SeeAlso []
Definition at line 511 of file vecPtr.h.
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
static |
Function*************************************************************
Synopsis [Sorting the entries by their integer value.]
Description []
SideEffects []
SeeAlso []
Definition at line 851 of file vecPtr.h.
|
static |
Function*************************************************************
Synopsis [Comparison procedure for two integers.]
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
Function*************************************************************
Synopsis [Allocates a vector with the given size and cleans it.]
Description []
SideEffects []
SeeAlso []
Definition at line 106 of file vecPtr.h.
|
static |
Function*************************************************************
Synopsis [Sorting the entries by their integer value.]
Description []
SideEffects []
SeeAlso []
Definition at line 875 of file vecPtr.h.
|
static |
Definition at line 887 of file vecPtr.h.