abc-master
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | Vec_Vec_t_ |
Macros | |
#define | Vec_VecForEachLevel(vGlob, vVec, i) for ( i = 0; (i < Vec_VecSize(vGlob)) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i++ ) |
MACRO DEFINITIONS ///. More... | |
#define | Vec_VecForEachLevelStart(vGlob, vVec, i, LevelStart) for ( i = LevelStart; (i < Vec_VecSize(vGlob)) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i++ ) |
#define | Vec_VecForEachLevelStop(vGlob, vVec, i, LevelStop) for ( i = 0; (i < LevelStop) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i++ ) |
#define | Vec_VecForEachLevelStartStop(vGlob, vVec, i, LevelStart, LevelStop) for ( i = LevelStart; (i < LevelStop) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i++ ) |
#define | Vec_VecForEachLevelReverse(vGlob, vVec, i) for ( i = Vec_VecSize(vGlob)-1; (i >= 0) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i-- ) |
#define | Vec_VecForEachLevelReverseStartStop(vGlob, vVec, i, LevelStart, LevelStop) for ( i = LevelStart-1; (i >= LevelStop) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i-- ) |
#define | Vec_VecForEachLevelTwo(vGlob1, vGlob2, vVec1, vVec2, i) for ( i = 0; (i < Vec_VecSize(vGlob1)) && (((vVec1) = Vec_VecEntry(vGlob1, i)), 1) && (((vVec2) = Vec_VecEntry(vGlob2, i)), 1); i++ ) |
#define | Vec_VecForEachLevelInt(vGlob, vVec, i) for ( i = 0; (i < Vec_VecSize(vGlob)) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i++ ) |
#define | Vec_VecForEachLevelIntStart(vGlob, vVec, i, LevelStart) for ( i = LevelStart; (i < Vec_VecSize(vGlob)) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i++ ) |
#define | Vec_VecForEachLevelIntStop(vGlob, vVec, i, LevelStop) for ( i = 0; (i < LevelStop) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i++ ) |
#define | Vec_VecForEachLevelIntStartStop(vGlob, vVec, i, LevelStart, LevelStop) for ( i = LevelStart; (i < LevelStop) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i++ ) |
#define | Vec_VecForEachLevelIntReverse(vGlob, vVec, i) for ( i = Vec_VecSize(vGlob)-1; (i >= 0) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i-- ) |
#define | Vec_VecForEachLevelIntReverseStartStop(vGlob, vVec, i, LevelStart, LevelStop) for ( i = LevelStart-1; (i >= LevelStop) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i-- ) |
#define | Vec_VecForEachLevelIntTwo(vGlob1, vGlob2, vVec1, vVec2, i) for ( i = 0; (i < Vec_VecSize(vGlob1)) && (((vVec1) = Vec_VecEntryInt(vGlob1, i)), 1) && (((vVec2) = Vec_VecEntryInt(vGlob2, i)), 1); i++ ) |
#define | Vec_VecForEachEntry(Type, vGlob, pEntry, i, k) |
#define | Vec_VecForEachEntryLevel(Type, vGlob, pEntry, i, Level) Vec_PtrForEachEntry( Type, Vec_VecEntry(vGlob, Level), pEntry, i ) |
#define | Vec_VecForEachEntryStart(Type, vGlob, pEntry, i, k, LevelStart) |
#define | Vec_VecForEachEntryStartStop(Type, vGlob, pEntry, i, k, LevelStart, LevelStop) |
#define | Vec_VecForEachEntryReverse(Type, vGlob, pEntry, i, k) |
#define | Vec_VecForEachEntryReverseReverse(Type, vGlob, pEntry, i, k) |
#define | Vec_VecForEachEntryReverseStart(Type, vGlob, pEntry, i, k, LevelStart) |
#define | Vec_VecForEachEntryInt(vGlob, Entry, i, k) |
#define | Vec_VecForEachEntryIntLevel(vGlob, Entry, i, Level) Vec_IntForEachEntry( Vec_VecEntryInt(vGlob, Level), Entry, i ) |
#define | Vec_VecForEachEntryIntStart(vGlob, Entry, i, k, LevelStart) |
#define | Vec_VecForEachEntryIntStartStop(vGlob, Entry, i, k, LevelStart, LevelStop) |
#define | Vec_VecForEachEntryIntReverse(vGlob, Entry, i, k) |
#define | Vec_VecForEachEntryIntReverseReverse(vGlob, Entry, i, k) |
#define | Vec_VecForEachEntryIntReverseStart(vGlob, Entry, i, k, LevelStart) |
Typedefs | |
typedef typedefABC_NAMESPACE_HEADER_START struct Vec_Vec_t_ | Vec_Vec_t |
INCLUDES ///. More... | |
Functions | |
static Vec_Vec_t * | Vec_VecAlloc (int nCap) |
FUNCTION DEFINITIONS ///. More... | |
static Vec_Vec_t * | Vec_VecStart (int nSize) |
static void | Vec_VecExpand (Vec_Vec_t *p, int Level) |
static void | Vec_VecExpandInt (Vec_Vec_t *p, int Level) |
static int | Vec_VecSize (Vec_Vec_t *p) |
static int | Vec_VecCap (Vec_Vec_t *p) |
static int | Vec_VecLevelSize (Vec_Vec_t *p, int i) |
static Vec_Ptr_t * | Vec_VecEntry (Vec_Vec_t *p, int i) |
static Vec_Int_t * | Vec_VecEntryInt (Vec_Vec_t *p, int i) |
static double | Vec_VecMemory (Vec_Vec_t *p) |
static double | Vec_VecMemoryInt (Vec_Vec_t *p) |
static void * | Vec_VecEntryEntry (Vec_Vec_t *p, int i, int k) |
static int | Vec_VecEntryEntryInt (Vec_Vec_t *p, int i, int k) |
static void | Vec_VecFree (Vec_Vec_t *p) |
static void | Vec_VecFreeP (Vec_Vec_t **p) |
static Vec_Vec_t * | Vec_VecDup (Vec_Vec_t *p) |
static Vec_Vec_t * | Vec_VecDupInt (Vec_Vec_t *p) |
static int | Vec_VecSizeSize (Vec_Vec_t *p) |
static void | Vec_VecClear (Vec_Vec_t *p) |
static void | Vec_VecPush (Vec_Vec_t *p, int Level, void *Entry) |
static void | Vec_VecPushInt (Vec_Vec_t *p, int Level, int Entry) |
static void | Vec_VecPushUnique (Vec_Vec_t *p, int Level, void *Entry) |
static void | Vec_VecPushUniqueInt (Vec_Vec_t *p, int Level, int Entry) |
static int | Vec_VecSortCompare1 (Vec_Ptr_t **pp1, Vec_Ptr_t **pp2) |
static int | Vec_VecSortCompare2 (Vec_Ptr_t **pp1, Vec_Ptr_t **pp2) |
static void | Vec_VecSort (Vec_Vec_t *p, int fReverse) |
static int | Vec_VecSortCompare3 (Vec_Int_t **pp1, Vec_Int_t **pp2) |
static int | Vec_VecSortCompare4 (Vec_Int_t **pp1, Vec_Int_t **pp2) |
static void | Vec_VecSortByFirstInt (Vec_Vec_t *p, int fReverse) |
static void | Vec_VecPrintInt (Vec_Vec_t *p, int fSkipSingles) |
#define Vec_VecForEachEntry | ( | Type, | |
vGlob, | |||
pEntry, | |||
i, | |||
k | |||
) |
#define Vec_VecForEachEntryInt | ( | vGlob, | |
Entry, | |||
i, | |||
k | |||
) |
#define Vec_VecForEachEntryIntLevel | ( | vGlob, | |
Entry, | |||
i, | |||
Level | |||
) | Vec_IntForEachEntry( Vec_VecEntryInt(vGlob, Level), Entry, i ) |
#define Vec_VecForEachEntryIntReverse | ( | vGlob, | |
Entry, | |||
i, | |||
k | |||
) |
#define Vec_VecForEachEntryIntReverseReverse | ( | vGlob, | |
Entry, | |||
i, | |||
k | |||
) |
#define Vec_VecForEachEntryIntReverseStart | ( | vGlob, | |
Entry, | |||
i, | |||
k, | |||
LevelStart | |||
) |
#define Vec_VecForEachEntryIntStart | ( | vGlob, | |
Entry, | |||
i, | |||
k, | |||
LevelStart | |||
) |
#define Vec_VecForEachEntryIntStartStop | ( | vGlob, | |
Entry, | |||
i, | |||
k, | |||
LevelStart, | |||
LevelStop | |||
) |
#define Vec_VecForEachEntryLevel | ( | Type, | |
vGlob, | |||
pEntry, | |||
i, | |||
Level | |||
) | Vec_PtrForEachEntry( Type, Vec_VecEntry(vGlob, Level), pEntry, i ) |
#define Vec_VecForEachEntryReverse | ( | Type, | |
vGlob, | |||
pEntry, | |||
i, | |||
k | |||
) |
#define Vec_VecForEachEntryReverseReverse | ( | Type, | |
vGlob, | |||
pEntry, | |||
i, | |||
k | |||
) |
#define Vec_VecForEachEntryReverseStart | ( | Type, | |
vGlob, | |||
pEntry, | |||
i, | |||
k, | |||
LevelStart | |||
) |
#define Vec_VecForEachEntryStart | ( | Type, | |
vGlob, | |||
pEntry, | |||
i, | |||
k, | |||
LevelStart | |||
) |
#define Vec_VecForEachEntryStartStop | ( | Type, | |
vGlob, | |||
pEntry, | |||
i, | |||
k, | |||
LevelStart, | |||
LevelStop | |||
) |
#define Vec_VecForEachLevel | ( | vGlob, | |
vVec, | |||
i | |||
) | for ( i = 0; (i < Vec_VecSize(vGlob)) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i++ ) |
#define Vec_VecForEachLevelInt | ( | vGlob, | |
vVec, | |||
i | |||
) | for ( i = 0; (i < Vec_VecSize(vGlob)) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i++ ) |
#define Vec_VecForEachLevelIntReverse | ( | vGlob, | |
vVec, | |||
i | |||
) | for ( i = Vec_VecSize(vGlob)-1; (i >= 0) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i-- ) |
#define Vec_VecForEachLevelIntReverseStartStop | ( | vGlob, | |
vVec, | |||
i, | |||
LevelStart, | |||
LevelStop | |||
) | for ( i = LevelStart-1; (i >= LevelStop) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i-- ) |
#define Vec_VecForEachLevelIntStart | ( | vGlob, | |
vVec, | |||
i, | |||
LevelStart | |||
) | for ( i = LevelStart; (i < Vec_VecSize(vGlob)) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i++ ) |
#define Vec_VecForEachLevelIntStartStop | ( | vGlob, | |
vVec, | |||
i, | |||
LevelStart, | |||
LevelStop | |||
) | for ( i = LevelStart; (i < LevelStop) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i++ ) |
#define Vec_VecForEachLevelIntStop | ( | vGlob, | |
vVec, | |||
i, | |||
LevelStop | |||
) | for ( i = 0; (i < LevelStop) && (((vVec) = Vec_VecEntryInt(vGlob, i)), 1); i++ ) |
#define Vec_VecForEachLevelIntTwo | ( | vGlob1, | |
vGlob2, | |||
vVec1, | |||
vVec2, | |||
i | |||
) | for ( i = 0; (i < Vec_VecSize(vGlob1)) && (((vVec1) = Vec_VecEntryInt(vGlob1, i)), 1) && (((vVec2) = Vec_VecEntryInt(vGlob2, i)), 1); i++ ) |
#define Vec_VecForEachLevelReverse | ( | vGlob, | |
vVec, | |||
i | |||
) | for ( i = Vec_VecSize(vGlob)-1; (i >= 0) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i-- ) |
#define Vec_VecForEachLevelReverseStartStop | ( | vGlob, | |
vVec, | |||
i, | |||
LevelStart, | |||
LevelStop | |||
) | for ( i = LevelStart-1; (i >= LevelStop) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i-- ) |
#define Vec_VecForEachLevelStart | ( | vGlob, | |
vVec, | |||
i, | |||
LevelStart | |||
) | for ( i = LevelStart; (i < Vec_VecSize(vGlob)) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i++ ) |
#define Vec_VecForEachLevelStartStop | ( | vGlob, | |
vVec, | |||
i, | |||
LevelStart, | |||
LevelStop | |||
) | for ( i = LevelStart; (i < LevelStop) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i++ ) |
#define Vec_VecForEachLevelStop | ( | vGlob, | |
vVec, | |||
i, | |||
LevelStop | |||
) | for ( i = 0; (i < LevelStop) && (((vVec) = Vec_VecEntry(vGlob, i)), 1); i++ ) |
#define Vec_VecForEachLevelTwo | ( | vGlob1, | |
vGlob2, | |||
vVec1, | |||
vVec2, | |||
i | |||
) | for ( i = 0; (i < Vec_VecSize(vGlob1)) && (((vVec1) = Vec_VecEntry(vGlob1, i)), 1) && (((vVec2) = Vec_VecEntry(vGlob2, i)), 1); i++ ) |
typedef typedefABC_NAMESPACE_HEADER_START struct Vec_Vec_t_ Vec_Vec_t |
INCLUDES ///.
CFile****************************************************************
FileName [vecVec.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Resizable arrays.]
Synopsis [Resizable vector of resizable vectors.]
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 145 of file vecVec.h.
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 437 of file vecVec.h.
Function*************************************************************
Synopsis [Frees the vector.]
Description []
SideEffects []
SeeAlso []
Definition at line 386 of file vecVec.h.
Definition at line 395 of file vecVec.h.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 271 of file vecVec.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 276 of file vecVec.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Allocates a vector with the given capacity.]
Description []
SideEffects []
SeeAlso []
Definition at line 190 of file vecVec.h.
|
inlinestatic |
Definition at line 200 of file vecVec.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Frees the vector.]
Description []
SideEffects []
SeeAlso []
Definition at line 347 of file vecVec.h.
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 254 of file vecVec.h.
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 293 of file vecVec.h.
|
inlinestatic |
Definition at line 304 of file vecVec.h.
|
inlinestatic |
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 456 of file vecVec.h.
|
inlinestatic |
Definition at line 468 of file vecVec.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 499 of file vecVec.h.
|
inlinestatic |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
|
inlinestatic |
Function*************************************************************
Synopsis [Frees the vector of vectors.]
Description []
SideEffects []
SeeAlso []
Definition at line 417 of file vecVec.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Sorting the entries by their integer value.]
Description []
SideEffects []
SeeAlso []
Definition at line 546 of file vecVec.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Sorting the entries by their integer value.]
Description []
SideEffects []
SeeAlso []
Definition at line 595 of file vecVec.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Allocates a vector with the given capacity.]
Description []
SideEffects []
SeeAlso []
Definition at line 168 of file vecVec.h.