ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
rsbMan.c
Go to the documentation of this file.
1
20
21#include "rsbInt.h"
22
24
25
29
33
45Rsb_Man_t * Rsb_ManAlloc( int nLeafMax, int nDivMax, int nDecMax, int fVerbose )
46{
47 Rsb_Man_t * p;
48 assert( nLeafMax <= 20 );
49 assert( nDivMax <= 200 );
50 p = ABC_CALLOC( Rsb_Man_t, 1 );
51 p->nLeafMax = nLeafMax;
52 p->nDivMax = nDivMax;
53 p->nDecMax = nDecMax;
54 p->fVerbose = fVerbose;
55 // decomposition
56 p->vCexes = Vec_WrdAlloc( nDivMax + 150 );
57 p->vDecPats = Vec_IntAlloc( Abc_TtWordNum(nLeafMax) );
58 p->vFanins = Vec_IntAlloc( 10 );
59 p->vFaninsOld = Vec_IntAlloc( 10 );
60 p->vTries = Vec_IntAlloc( 10 );
61 return p;
62}
64{
65 Vec_WrdFree( p->vCexes );
66 Vec_IntFree( p->vDecPats );
67 Vec_IntFree( p->vFanins );
68 Vec_IntFree( p->vFaninsOld );
69 Vec_IntFree( p->vTries );
70 ABC_FREE( p );
71}
72
85{
86 return p->vFanins;
87}
89{
90 return p->vFaninsOld;
91}
92
96
97
99
#define ABC_CALLOC(type, num)
Definition abc_global.h:265
#define ABC_FREE(obj)
Definition abc_global.h:267
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
Definition bblif.c:37
Cube * p
Definition exorList.c:222
Vec_Int_t * Rsb_ManGetFaninsOld(Rsb_Man_t *p)
Definition rsbMan.c:88
void Rsb_ManFree(Rsb_Man_t *p)
Definition rsbMan.c:63
ABC_NAMESPACE_IMPL_START Rsb_Man_t * Rsb_ManAlloc(int nLeafMax, int nDivMax, int nDecMax, int fVerbose)
DECLARATIONS ///.
Definition rsbMan.c:45
Vec_Int_t * Rsb_ManGetFanins(Rsb_Man_t *p)
Definition rsbMan.c:84
typedefABC_NAMESPACE_HEADER_START struct Rsb_Man_t_ Rsb_Man_t
INCLUDES ///.
Definition rsb.h:39
#define assert(ex)
Definition util_old.h:213