ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
mainInit.c
Go to the documentation of this file.
1
20
21#include "base/abc/abc.h"
22#include "mainInt.h"
23
25
29
30extern void Abc_Init( Abc_Frame_t * pAbc );
31extern void Abc_End ( Abc_Frame_t * pAbc );
32extern void Io_Init( Abc_Frame_t * pAbc );
33extern void Io_End ( Abc_Frame_t * pAbc );
34extern void Cmd_Init( Abc_Frame_t * pAbc );
35extern void Cmd_End ( Abc_Frame_t * pAbc );
36extern void If_Init( Abc_Frame_t * pAbc );
37extern void If_End ( Abc_Frame_t * pAbc );
38extern void Map_Init( Abc_Frame_t * pAbc );
39extern void Map_End ( Abc_Frame_t * pAbc );
40extern void Mio_Init( Abc_Frame_t * pAbc );
41extern void Mio_End ( Abc_Frame_t * pAbc );
42extern void Super_Init( Abc_Frame_t * pAbc );
43extern void Super_End ( Abc_Frame_t * pAbc );
44extern void Libs_Init( Abc_Frame_t * pAbc );
45extern void Libs_End( Abc_Frame_t * pAbc );
46extern void Load_Init( Abc_Frame_t * pAbc );
47extern void Load_End( Abc_Frame_t * pAbc );
48extern void Scl_Init( Abc_Frame_t * pAbc );
49extern void Scl_End( Abc_Frame_t * pAbc );
50extern void Wlc_Init( Abc_Frame_t * pAbc );
51extern void Wlc_End( Abc_Frame_t * pAbc );
52extern void Wln_Init( Abc_Frame_t * pAbc );
53extern void Wln_End( Abc_Frame_t * pAbc );
54extern void Bac_Init( Abc_Frame_t * pAbc );
55extern void Bac_End( Abc_Frame_t * pAbc );
56extern void Cba_Init( Abc_Frame_t * pAbc );
57extern void Cba_End( Abc_Frame_t * pAbc );
58extern void Pla_Init( Abc_Frame_t * pAbc );
59extern void Pla_End( Abc_Frame_t * pAbc );
60extern void Sim_Init( Abc_Frame_t * pAbc );
61extern void Sim_End( Abc_Frame_t * pAbc );
62extern void Test_Init( Abc_Frame_t * pAbc );
63extern void Test_End( Abc_Frame_t * pAbc );
64extern void Abc2_Init( Abc_Frame_t * pAbc );
65extern void Abc2_End ( Abc_Frame_t * pAbc );
66extern void Abc85_Init( Abc_Frame_t * pAbc );
67extern void Abc85_End( Abc_Frame_t * pAbc );
68extern void Glucose_Init( Abc_Frame_t *pAbc );
69extern void Glucose_End( Abc_Frame_t * pAbc );
70extern void Glucose2_Init( Abc_Frame_t *pAbc );
71extern void Glucose2_End( Abc_Frame_t * pAbc );
72
73static Abc_FrameInitializer_t* s_InitializerStart = NULL;
74static Abc_FrameInitializer_t* s_InitializerEnd = NULL;
75
77{
78 if( ! s_InitializerStart )
79 s_InitializerStart = p;
80
81 p->next = NULL;
82 p->prev = s_InitializerEnd;
83
84 if ( s_InitializerEnd )
85 s_InitializerEnd->next = p;
86
87 s_InitializerEnd = p;
88
89}
90
94
107{
109 Cmd_Init( pAbc );
110 Cmd_CommandExecute( pAbc, "set checkread" );
111 Io_Init( pAbc );
112 Abc_Init( pAbc );
113 If_Init( pAbc );
114 Map_Init( pAbc );
115 Mio_Init( pAbc );
116 Super_Init( pAbc );
117 Libs_Init( pAbc );
118 Load_Init( pAbc );
119 Scl_Init( pAbc );
120 Wlc_Init( pAbc );
121 Wln_Init( pAbc );
122 Bac_Init( pAbc );
123 Cba_Init( pAbc );
124 Pla_Init( pAbc );
125 Test_Init( pAbc );
126 Glucose_Init( pAbc );
127 Glucose2_Init( pAbc );
128 for( p = s_InitializerStart ; p ; p = p->next )
129 if(p->init)
130 p->init(pAbc);
131}
132
133
146{
148 for( p = s_InitializerEnd ; p ; p = p->prev )
149 if ( p->destroy )
150 p->destroy(pAbc);
151 Abc_End( pAbc );
152 Io_End( pAbc );
153 Cmd_End( pAbc );
154 If_End( pAbc );
155 Map_End( pAbc );
156 Mio_End( pAbc );
157 Super_End( pAbc );
158 Libs_End( pAbc );
159 Load_End( pAbc );
160 Scl_End( pAbc );
161 Wlc_End( pAbc );
162 Wln_End( pAbc );
163 Bac_End( pAbc );
164 Cba_End( pAbc );
165 Pla_End( pAbc );
166 Test_End( pAbc );
167 Glucose_End( pAbc );
168}
169
170
174
175
177
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
Definition abcapis.h:38
ABC_DLL int Cmd_CommandExecute(Abc_Frame_t *pAbc, const char *sCommand)
Definition cmdApi.c:193
Cube * p
Definition exorList.c:222
void Abc_End(Abc_Frame_t *pAbc)
Definition abc.c:1504
void Abc2_End(Abc_Frame_t *pAbc)
void Abc85_Init(Abc_Frame_t *pAbc)
void Scl_Init(Abc_Frame_t *pAbc)
Definition scl.c:102
void Wln_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition wlnCom.c:56
void Libs_Init(Abc_Frame_t *pAbc)
Definition libSupport.c:200
void Cba_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition cbaCom.c:60
void Mio_Init(Abc_Frame_t *pAbc)
Definition mio.c:198
void Bac_Init(Abc_Frame_t *pAbc)
Definition bacCom.c:102
void Sim_End(Abc_Frame_t *pAbc)
void Super_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition super.c:48
void Abc85_End(Abc_Frame_t *pAbc)
void Cmd_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition cmd.c:85
void Super_End(Abc_Frame_t *pAbc)
Definition super.c:65
void Pla_End(Abc_Frame_t *pAbc)
Definition plaCom.c:78
void Scl_End(Abc_Frame_t *pAbc)
Definition scl.c:127
void Wlc_End(Abc_Frame_t *pAbc)
Definition wlcCom.c:117
void Glucose_End(Abc_Frame_t *pAbc)
void Map_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition mapper.c:48
void Cmd_End(Abc_Frame_t *pAbc)
Definition cmd.c:139
void Io_End(Abc_Frame_t *pAbc)
Definition io.c:192
void Load_End(Abc_Frame_t *pAbc)
Definition cmdLoad.c:199
void Abc_FrameEnd(Abc_Frame_t *pAbc)
Definition mainInit.c:145
void Abc_FrameInit(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition mainInit.c:106
void Abc_FrameAddInitializer(Abc_FrameInitializer_t *p)
Definition mainInit.c:76
void Test_Init(Abc_Frame_t *pAbc)
DECLARATIONS ///.
Definition test.c:45
void Io_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition io.c:117
void Libs_End(Abc_Frame_t *pAbc)
Definition libSupport.c:206
void Wln_End(Abc_Frame_t *pAbc)
Definition wlnCom.c:77
ABC_NAMESPACE_IMPL_START void Abc_Init(Abc_Frame_t *pAbc)
DECLARATIONS ///.
Definition abc.c:892
void Load_Init(Abc_Frame_t *pAbc)
Definition cmdLoad.c:164
void Mio_End(Abc_Frame_t *pAbc)
Definition mio.c:226
void Glucose_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
void Sim_Init(Abc_Frame_t *pAbc)
void Test_End(Abc_Frame_t *pAbc)
Definition test.c:60
void Wlc_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition wlcCom.c:78
void Bac_End(Abc_Frame_t *pAbc)
Definition bacCom.c:125
void Cba_End(Abc_Frame_t *pAbc)
Definition cbaCom.c:84
void If_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition ifCom.c:53
void Glucose2_End(Abc_Frame_t *pAbc)
void Map_End(Abc_Frame_t *pAbc)
Definition mapper.c:64
void Pla_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
Definition plaCom.c:57
void Glucose2_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
void Abc2_Init(Abc_Frame_t *pAbc)
void If_End(Abc_Frame_t *pAbc)
Definition ifCom.c:79
struct Abc_FrameInitializer_t_ Abc_FrameInitializer_t
Definition mainInt.h:176