abc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
decMan.c File Reference
#include "base/abc/abc.h"
#include "misc/mvc/mvc.h"
#include "dec.h"

Go to the source code of this file.

Functions

ABC_NAMESPACE_IMPL_START
Dec_Man_t
Dec_ManStart ()
 DECLARATIONS ///. More...
 
void Dec_ManStop (Dec_Man_t *p)
 

Function Documentation

DECLARATIONS ///.

CFile****************************************************************

FileName [decMan.c]

PackageName [MVSIS 2.0: Multi-valued logic synthesis system.]

Synopsis [Decomposition manager.]

Author [MVSIS Group]

Affiliation [UC Berkeley]

Date [Ver. 1.0. Started - February 1, 2003.]

Revision [

Id:
decMan.c,v 1.1 2003/05/22 19:20:05 alanmi Exp

]FUNCTION DEFINITIONS /// Function*************************************************************

Synopsis [Start the MVC manager used in the factoring package.]

Description []

SideEffects []

SeeAlso []

Definition at line 45 of file decMan.c.

46 {
47  Dec_Man_t * p;
48 // abctime clk = Abc_Clock();
49  p = ABC_ALLOC( Dec_Man_t, 1 );
51  p->vCubes = Vec_IntAlloc( 8 );
52  p->vLits = Vec_IntAlloc( 8 );
53  // canonical forms, phases, perms
54  Extra_Truth4VarNPN( &p->puCanons, &p->pPhases, &p->pPerms, &p->pMap );
55 //ABC_PRT( "NPN classes precomputation time", Abc_Clock() - clk );
56  return p;
57 }
static Llb_Mgr_t * p
Definition: llb3Image.c:950
void * pMvcMem
Definition: dec.h:82
Vec_Int_t * vCubes
Definition: dec.h:83
#define ABC_ALLOC(type, num)
Definition: abc_global.h:229
char * pPhases
Definition: dec.h:87
unsigned char * pMap
Definition: dec.h:89
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
Definition: bblif.c:149
Vec_Int_t * vLits
Definition: dec.h:84
Mvc_Manager_t * Mvc_ManagerStart()
DECLARATIONS ///.
Definition: mvcMan.c:44
unsigned short * puCanons
Definition: dec.h:86
void Extra_Truth4VarNPN(unsigned short **puCanons, char **puPhases, char **puPerms, unsigned char **puMap)
Definition: dec.h:80
char * pPerms
Definition: dec.h:88
void Dec_ManStop ( Dec_Man_t p)

Function*************************************************************

Synopsis [Stops the MVC maanager used in the factoring package.]

Description []

SideEffects []

SeeAlso []

Definition at line 70 of file decMan.c.

71 {
73  Vec_IntFree( p->vCubes );
74  Vec_IntFree( p->vLits );
75  ABC_FREE( p->puCanons );
76  ABC_FREE( p->pPhases );
77  ABC_FREE( p->pPerms );
78  ABC_FREE( p->pMap );
79  ABC_FREE( p );
80 }
void * pMvcMem
Definition: dec.h:82
Vec_Int_t * vCubes
Definition: dec.h:83
char * pPhases
Definition: dec.h:87
unsigned char * pMap
Definition: dec.h:89
void Mvc_ManagerFree(Mvc_Manager_t *p)
Definition: mvcMan.c:67
Vec_Int_t * vLits
Definition: dec.h:84
unsigned short * puCanons
Definition: dec.h:86
#define ABC_FREE(obj)
Definition: abc_global.h:232
static void Vec_IntFree(Vec_Int_t *p)
Definition: bblif.c:235
char * pPerms
Definition: dec.h:88