VIS

src/vm/vmInit.c

Go to the documentation of this file.
00001 
00032 #include "vmInt.h"
00033 
00034 static char rcsid[] UNUSED = "$Id: vmInit.c,v 1.17 2004/12/27 00:25:32 bli Exp $";
00035 
00038 /*---------------------------------------------------------------------------*/
00039 /* Static function prototypes                                                */
00040 /*---------------------------------------------------------------------------*/
00041 
00042 
00046 /*---------------------------------------------------------------------------*/
00047 /* Definition of exported functions                                          */
00048 /*---------------------------------------------------------------------------*/
00049 
00050 /*---------------------------------------------------------------------------*/
00051 /* Definition of internal functions                                          */
00052 /*---------------------------------------------------------------------------*/
00053 
00054 
00065 void
00066 VmInit(void)
00067 {
00068   vis_stdout      = stdout; 
00069   vis_stderr      = stderr;
00070   vis_historyFile = NIL(FILE);
00071   
00072   Cmd_Init();
00073   Tst_Init();
00074   Tbl_Init();
00075   Io_Init();
00076   Hrc_Init();
00077   Rst_Init();
00078   Ntk_Init();
00079   Ord_Init();
00080   Ntm_Init();
00081   Ctlp_Init();
00082   Ctlsp_Init();  
00083   Fsm_Init();
00084   Ltl_Init();    
00085   Grab_Init();   
00086   Sim_Init();
00087   Part_Init();
00088   Mvf_Init();
00089   Img_Init();
00090   Mc_Init();
00091   Eqv_Init();
00092   Amc_Init();
00093   Res_Init();
00094   Synth_Init();
00095   Abs_Init();
00096   Restr_Init();
00097   Imc_Init();
00098   Spfd_Init();
00099   Truesim_Init();
00100   Rt_Init();
00101   bAig_Init();
00102   mAig_Init();
00103   MvfAig_Init();
00104   ntmaig_Init();
00105   Bmc_Init();
00106   PureSat_Init();
00107 }
00108 
00109 
00119 void
00120 VmEnd(void)
00121 {
00122   Synth_End();
00123   Amc_End();
00124   Eqv_End();
00125   Mc_End();
00126   Img_End();
00127   Mvf_End();
00128   Part_End();
00129   Sim_End();
00130   Fsm_End();
00131   Grab_End();
00132   Ltl_End();   
00133   Ctlp_End();
00134   Ctlsp_End(); 
00135   Ntm_End();
00136   Ord_End();
00137   Ntk_End();
00138   Rst_End();
00139   Hrc_End();
00140   Tbl_End();
00141   Io_End();
00142   Res_End();
00143   Tst_End();
00144   Cmd_End();
00145   Abs_End();
00146   Restr_End();
00147   Imc_End();
00148   Spfd_End();
00149   Truesim_End();
00150   Rt_End();
00151   bAig_End();
00152   mAig_End();
00153   MvfAig_End();
00154   ntmaig_End();
00155   Bmc_End();
00156 
00157   if (vis_stdout != stdout) {  
00158     (void) fclose(vis_stdout);
00159   } 
00160   if (vis_stderr != stderr) {
00161     (void) fclose(vis_stderr);
00162   }
00163   if (vis_historyFile != NIL(FILE)) {
00164     (void) fclose(vis_historyFile);
00165   }
00166   
00167   vis_stdout      = stdout;
00168   vis_stderr      = stderr;
00169   vis_historyFile = NIL(FILE);
00170 }
00171 
00172 
00173 /*---------------------------------------------------------------------------*/
00174 /* Definition of static functions                                            */
00175 /*---------------------------------------------------------------------------*/