abc-master
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | Vec_Int_t_ |
Macros | |
#define | Vec_IntForEachEntry(vVec, Entry, i) for ( i = 0; (i < Vec_IntSize(vVec)) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ ) |
MACRO DEFINITIONS ///. More... | |
#define | Vec_IntForEachEntryStart(vVec, Entry, i, Start) for ( i = Start; (i < Vec_IntSize(vVec)) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ ) |
#define | Vec_IntForEachEntryStop(vVec, Entry, i, Stop) for ( i = 0; (i < Stop) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ ) |
#define | Vec_IntForEachEntryStartStop(vVec, Entry, i, Start, Stop) for ( i = Start; (i < Stop) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ ) |
#define | Vec_IntForEachEntryReverse(vVec, pEntry, i) for ( i = Vec_IntSize(vVec) - 1; (i >= 0) && (((pEntry) = Vec_IntEntry(vVec, i)), 1); i-- ) |
#define | Vec_IntForEachEntryTwo(vVec1, vVec2, Entry1, Entry2, i) for ( i = 0; (i < Vec_IntSize(vVec1)) && (((Entry1) = Vec_IntEntry(vVec1, i)), 1) && (((Entry2) = Vec_IntEntry(vVec2, i)), 1); i++ ) |
#define | Vec_IntForEachEntryDouble(vVec, Entry1, Entry2, i) for ( i = 0; (i+1 < Vec_IntSize(vVec)) && (((Entry1) = Vec_IntEntry(vVec, i)), 1) && (((Entry2) = Vec_IntEntry(vVec, i+1)), 1); i += 2 ) |
#define | Vec_IntForEachEntryTriple(vVec, Entry1, Entry2, Entry3, i) for ( i = 0; (i+2 < Vec_IntSize(vVec)) && (((Entry1) = Vec_IntEntry(vVec, i)), 1) && (((Entry2) = Vec_IntEntry(vVec, i+1)), 1) && (((Entry3) = Vec_IntEntry(vVec, i+2)), 1); i += 3 ) |
#define | Vec_IntForEachEntryThisNext(vVec, This, Next, i) for ( i = 0, (This) = (Next) = (Vec_IntSize(vVec) ? Vec_IntEntry(vVec, 0) : -1); (i+1 < Vec_IntSize(vVec)) && (((Next) = Vec_IntEntry(vVec, i+1)), 1); i += 2, (This) = (Next) ) |
Typedefs | |
typedef typedefABC_NAMESPACE_HEADER_START struct Vec_Int_t_ | Vec_Int_t |
INCLUDES ///. More... | |
Functions | |
static Vec_Int_t * | Vec_IntAlloc (int nCap) |
FUNCTION DEFINITIONS ///. More... | |
static Vec_Int_t * | Vec_IntStart (int nSize) |
static Vec_Int_t * | Vec_IntStartFull (int nSize) |
static Vec_Int_t * | Vec_IntStartRange (int First, int Range) |
static Vec_Int_t * | Vec_IntStartNatural (int nSize) |
static Vec_Int_t * | Vec_IntAllocArray (int *pArray, int nSize) |
static Vec_Int_t * | Vec_IntAllocArrayCopy (int *pArray, int nSize) |
static Vec_Int_t * | Vec_IntDup (Vec_Int_t *pVec) |
static Vec_Int_t * | Vec_IntDupArray (Vec_Int_t *pVec) |
static void | Vec_IntZero (Vec_Int_t *p) |
static void | Vec_IntErase (Vec_Int_t *p) |
static void | Vec_IntFree (Vec_Int_t *p) |
static void | Vec_IntFreeP (Vec_Int_t **p) |
static int * | Vec_IntReleaseArray (Vec_Int_t *p) |
static int * | Vec_IntArray (Vec_Int_t *p) |
static int ** | Vec_IntArrayP (Vec_Int_t *p) |
static int * | Vec_IntLimit (Vec_Int_t *p) |
static int | Vec_IntSize (Vec_Int_t *p) |
static int | Vec_IntCap (Vec_Int_t *p) |
static double | Vec_IntMemory (Vec_Int_t *p) |
static int | Vec_IntEntry (Vec_Int_t *p, int i) |
static int * | Vec_IntEntryP (Vec_Int_t *p, int i) |
static void | Vec_IntWriteEntry (Vec_Int_t *p, int i, int Entry) |
static int | Vec_IntAddToEntry (Vec_Int_t *p, int i, int Addition) |
static void | Vec_IntUpdateEntry (Vec_Int_t *p, int i, int Value) |
static void | Vec_IntDowndateEntry (Vec_Int_t *p, int i, int Value) |
static int | Vec_IntEntryLast (Vec_Int_t *p) |
static void | Vec_IntGrow (Vec_Int_t *p, int nCapMin) |
static void | Vec_IntGrowResize (Vec_Int_t *p, int nCapMin) |
static void | Vec_IntFill (Vec_Int_t *p, int nSize, int Fill) |
static void | Vec_IntFillTwo (Vec_Int_t *p, int nSize, int FillEven, int FillOdd) |
static void | Vec_IntFillExtra (Vec_Int_t *p, int nSize, int Fill) |
static int | Vec_IntGetEntry (Vec_Int_t *p, int i) |
static int * | Vec_IntGetEntryP (Vec_Int_t *p, int i) |
static void | Vec_IntSetEntry (Vec_Int_t *p, int i, int Entry) |
static void | Vec_IntSetEntryFull (Vec_Int_t *p, int i, int Entry) |
static void | Vec_IntShrink (Vec_Int_t *p, int nSizeNew) |
static void | Vec_IntClear (Vec_Int_t *p) |
static void | Vec_IntPush (Vec_Int_t *p, int Entry) |
static void | Vec_IntPushTwo (Vec_Int_t *p, int Entry1, int Entry2) |
static void | Vec_IntPushArray (Vec_Int_t *p, int *pEntries, int nEntries) |
static void | Vec_IntPushFirst (Vec_Int_t *p, int Entry) |
static void | Vec_IntPushOrder (Vec_Int_t *p, int Entry) |
static void | Vec_IntPushOrderReverse (Vec_Int_t *p, int Entry) |
static int | Vec_IntPushUniqueOrder (Vec_Int_t *p, int Entry) |
static int | Vec_IntPushUnique (Vec_Int_t *p, int Entry) |
static unsigned * | Vec_IntFetch (Vec_Int_t *p, int nWords) |
static int | Vec_IntPop (Vec_Int_t *p) |
static int | Vec_IntFind (Vec_Int_t *p, int Entry) |
static int | Vec_IntRemove (Vec_Int_t *p, int Entry) |
static int | Vec_IntRemove1 (Vec_Int_t *p, int Entry) |
static void | Vec_IntDrop (Vec_Int_t *p, int i) |
static void | Vec_IntInsert (Vec_Int_t *p, int iHere, int Entry) |
static int | Vec_IntFindMax (Vec_Int_t *p) |
static int | Vec_IntFindMin (Vec_Int_t *p) |
static void | Vec_IntReverseOrder (Vec_Int_t *p) |
static void | Vec_IntRemoveOdd (Vec_Int_t *p) |
static void | Vec_IntRemoveEven (Vec_Int_t *p) |
static Vec_Int_t * | Vec_IntInvert (Vec_Int_t *p, int Fill) |
static Vec_Int_t * | Vec_IntCondense (Vec_Int_t *p, int Fill) |
static int | Vec_IntSum (Vec_Int_t *p) |
static int | Vec_IntCountEntry (Vec_Int_t *p, int Entry) |
static int | Vec_IntCountPositive (Vec_Int_t *p) |
static int | Vec_IntCountZero (Vec_Int_t *p) |
static int | Vec_IntEqual (Vec_Int_t *p1, Vec_Int_t *p2) |
static int | Vec_IntCountCommon (Vec_Int_t *p1, Vec_Int_t *p2) |
static int | Vec_IntSortCompare1 (int *pp1, int *pp2) |
static int | Vec_IntSortCompare2 (int *pp1, int *pp2) |
static void | Vec_IntSort (Vec_Int_t *p, int fReverse) |
static int | Vec_IntUniqify (Vec_Int_t *p) |
static int | Vec_IntCountDuplicates (Vec_Int_t *p) |
static int | Vec_IntCheckUniqueSmall (Vec_Int_t *p) |
static int | Vec_IntCountUnique (Vec_Int_t *p) |
static unsigned | Vec_IntUniqueHashKeyDebug (unsigned char *pStr, int nChars, int TableMask) |
static void | Vec_IntUniqueProfile (Vec_Int_t *vData, int *pTable, int *pNexts, int TableMask, int nIntSize) |
static unsigned | Vec_IntUniqueHashKey2 (unsigned char *pStr, int nChars) |
static unsigned | Vec_IntUniqueHashKey (unsigned char *pStr, int nChars) |
static int * | Vec_IntUniqueLookup (Vec_Int_t *vData, int i, int nIntSize, int *pNexts, int *pStart) |
static int | Vec_IntUniqueCount (Vec_Int_t *vData, int nIntSize, Vec_Int_t **pvMap) |
static Vec_Int_t * | Vec_IntUniqifyHash (Vec_Int_t *vData, int nIntSize) |
static int | Vec_IntSortCompareUnsigned (unsigned *pp1, unsigned *pp2) |
static void | Vec_IntSortUnsigned (Vec_Int_t *p) |
static int | Vec_IntTwoCountCommon (Vec_Int_t *vArr1, Vec_Int_t *vArr2) |
static int | Vec_IntTwoFindCommon (Vec_Int_t *vArr1, Vec_Int_t *vArr2, Vec_Int_t *vArr) |
static int | Vec_IntTwoRemoveCommon (Vec_Int_t *vArr1, Vec_Int_t *vArr2, Vec_Int_t *vArr) |
static int | Vec_IntTwoRemove (Vec_Int_t *vArr1, Vec_Int_t *vArr2) |
static void | Vec_IntTwoMerge2Int (Vec_Int_t *vArr1, Vec_Int_t *vArr2, Vec_Int_t *vArr) |
static Vec_Int_t * | Vec_IntTwoMerge (Vec_Int_t *vArr1, Vec_Int_t *vArr2) |
static void | Vec_IntTwoMerge2 (Vec_Int_t *vArr1, Vec_Int_t *vArr2, Vec_Int_t *vArr) |
static void | Vec_IntTwoSplit (Vec_Int_t *vArr1, Vec_Int_t *vArr2, Vec_Int_t *vArr, Vec_Int_t *vArr1n, Vec_Int_t *vArr2n) |
static void | Vec_IntSelectSort (int *pArray, int nSize) |
static void | Vec_IntSelectSortCost (int *pArray, int nSize, Vec_Int_t *vCosts) |
static void | Vec_IntSelectSortCost2 (int *pArray, int nSize, int *pCosts) |
static void | Vec_IntPrint (Vec_Int_t *vVec) |
static void | Vec_IntPrintBinary (Vec_Int_t *vVec) |
static int | Vec_IntCompareVec (Vec_Int_t *p1, Vec_Int_t *p2) |
static void | Vec_IntAppend (Vec_Int_t *vVec1, Vec_Int_t *vVec2) |
#define Vec_IntForEachEntry | ( | vVec, | |
Entry, | |||
i | |||
) | for ( i = 0; (i < Vec_IntSize(vVec)) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ ) |
#define Vec_IntForEachEntryDouble | ( | vVec, | |
Entry1, | |||
Entry2, | |||
i | |||
) | for ( i = 0; (i+1 < Vec_IntSize(vVec)) && (((Entry1) = Vec_IntEntry(vVec, i)), 1) && (((Entry2) = Vec_IntEntry(vVec, i+1)), 1); i += 2 ) |
#define Vec_IntForEachEntryReverse | ( | vVec, | |
pEntry, | |||
i | |||
) | for ( i = Vec_IntSize(vVec) - 1; (i >= 0) && (((pEntry) = Vec_IntEntry(vVec, i)), 1); i-- ) |
#define Vec_IntForEachEntryStart | ( | vVec, | |
Entry, | |||
i, | |||
Start | |||
) | for ( i = Start; (i < Vec_IntSize(vVec)) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ ) |
#define Vec_IntForEachEntryStartStop | ( | vVec, | |
Entry, | |||
i, | |||
Start, | |||
Stop | |||
) | for ( i = Start; (i < Stop) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ ) |
#define Vec_IntForEachEntryStop | ( | vVec, | |
Entry, | |||
i, | |||
Stop | |||
) | for ( i = 0; (i < Stop) && (((Entry) = Vec_IntEntry(vVec, i)), 1); i++ ) |
#define Vec_IntForEachEntryThisNext | ( | vVec, | |
This, | |||
Next, | |||
i | |||
) | for ( i = 0, (This) = (Next) = (Vec_IntSize(vVec) ? Vec_IntEntry(vVec, 0) : -1); (i+1 < Vec_IntSize(vVec)) && (((Next) = Vec_IntEntry(vVec, i+1)), 1); i += 2, (This) = (Next) ) |
#define Vec_IntForEachEntryTriple | ( | vVec, | |
Entry1, | |||
Entry2, | |||
Entry3, | |||
i | |||
) | for ( i = 0; (i+2 < Vec_IntSize(vVec)) && (((Entry1) = Vec_IntEntry(vVec, i)), 1) && (((Entry2) = Vec_IntEntry(vVec, i+1)), 1) && (((Entry3) = Vec_IntEntry(vVec, i+2)), 1); i += 3 ) |
#define Vec_IntForEachEntryTwo | ( | vVec1, | |
vVec2, | |||
Entry1, | |||
Entry2, | |||
i | |||
) | for ( i = 0; (i < Vec_IntSize(vVec1)) && (((Entry1) = Vec_IntEntry(vVec1, i)), 1) && (((Entry2) = Vec_IntEntry(vVec2, i)), 1); i++ ) |
typedef typedefABC_NAMESPACE_HEADER_START struct Vec_Int_t_ Vec_Int_t |
INCLUDES ///.
CFile****************************************************************
FileName [vecInt.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Resizable arrays.]
Synopsis [Resizable arrays of integers.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]PARAMETERS ///BASIC TYPES ///
|
inlinestatic |
|
inlinestatic |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Allocates a vector with the given capacity.]
Description []
SideEffects []
SeeAlso []
Definition at line 88 of file vecInt.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Creates the vector from an integer array of the given size.]
Description []
SideEffects []
SeeAlso []
Definition at line 171 of file vecInt.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Creates the vector from an integer array of the given size.]
Description []
SideEffects []
SeeAlso []
Definition at line 192 of file vecInt.h.
Function*************************************************************
Synopsis [Appends the contents of the second vector.]
Description []
SideEffects []
SeeAlso []
Definition at line 1849 of file vecInt.h.
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1116 of file vecInt.h.
Function*************************************************************
Synopsis [Counts the number of common entries.]
Description [Assumes that the entries are non-negative integers that are not very large, so inversion of the array can be performed.]
SideEffects []
SeeAlso []
Definition at line 1224 of file vecInt.h.
|
inlinestatic |
Definition at line 1327 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 473 of file vecInt.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Duplicates the integer array.]
Description []
SideEffects []
SeeAlso []
Definition at line 214 of file vecInt.h.
Function*************************************************************
Synopsis [Transfers the array into another vector.]
Description []
SideEffects []
SeeAlso []
Definition at line 236 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Checks if two vectors are equal.]
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Find entry.]
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
Function*************************************************************
Synopsis [Find entry.]
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Returns the entry even if the place not exist.]
Description []
SideEffects []
SeeAlso []
Definition at line 601 of file vecInt.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Returns the entry even if the place not exist.]
Description []
SideEffects []
SeeAlso []
Definition at line 618 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1092 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 384 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1803 of file vecInt.h.
|
inlinestatic |
Definition at line 1811 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Reverses the order of entries.]
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis [Inserts the entry even if the place does not exist.]
Description []
SideEffects []
SeeAlso []
Definition at line 635 of file vecInt.h.
|
inlinestatic |
Definition at line 640 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
|
static |
Function*************************************************************
Synopsis [Comparison procedure for two integers.]
Description []
SideEffects []
SeeAlso []
|
static |
Function*************************************************************
Synopsis [Comparison procedure for two integers.]
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
Function*************************************************************
Synopsis [Comparison procedure for two integers.]
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
Function*************************************************************
Synopsis [Sorting the entries by their integer value.]
Description []
SideEffects []
SeeAlso []
Definition at line 1511 of file vecInt.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Allocates a vector with the given size and cleans it.]
Description []
SideEffects []
SeeAlso []
Definition at line 111 of file vecInt.h.
|
inlinestatic |
Definition at line 119 of file vecInt.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Allocates a vector with the given size and cleans it.]
Description []
SideEffects []
SeeAlso []
Definition at line 149 of file vecInt.h.
|
inlinestatic |
Definition at line 127 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 1684 of file vecInt.h.
|
inlinestatic |
Definition at line 1690 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 1464 of file vecInt.h.
Definition at line 1437 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 468 of file vecInt.h.
|
inlinestatic |
|
inlinestatic |