ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
decMan.c
Go to the documentation of this file.
1
18
19#include "base/abc/abc.h"
20#include "misc/mvc/mvc.h"
21#include "dec.h"
22
24
25
29
33
46{
47 Dec_Man_t * p;
48// abctime clk = Abc_Clock();
49 p = ABC_ALLOC( Dec_Man_t, 1 );
50 p->pMvcMem = Mvc_ManagerStart();
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}
58
71{
72 Mvc_ManagerFree( (Mvc_Manager_t *)p->pMvcMem );
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}
81
85
86
88
#define ABC_ALLOC(type, num)
Definition abc_global.h:264
#define ABC_FREE(obj)
Definition abc_global.h:267
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
ABC_NAMESPACE_IMPL_START Dec_Man_t * Dec_ManStart()
DECLARATIONS ///.
Definition decMan.c:45
void Dec_ManStop(Dec_Man_t *p)
Definition decMan.c:70
struct Dec_Man_t_ Dec_Man_t
Definition dec.h:79
Cube * p
Definition exorList.c:222
void Extra_Truth4VarNPN(unsigned short **puCanons, char **puPhases, char **puPerms, unsigned char **puMap)
struct MvcManagerStruct Mvc_Manager_t
Definition mvc.h:60
void Mvc_ManagerFree(Mvc_Manager_t *p)
Definition mvcMan.c:67
Mvc_Manager_t * Mvc_ManagerStart()
DECLARATIONS ///.
Definition mvcMan.c:44