00001 /* --------------------------------------------------------------------------- 00002 00003 00004 This file is part of the ``bmc'' package of NuSMV version 2. 00005 Copyright (C) 2000-2001 by FBK-irst and University of Trento. 00006 00007 NuSMV version 2 is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Lesser General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 NuSMV version 2 is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with this library; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 00020 00021 For more information on NuSMV see <http://nusmv.fbk.eu> 00022 or email to <nusmv-users@fbk.eu>. 00023 Please report bugs to <nusmv-users@fbk.eu>. 00024 00025 To contact the NuSMV development board, email to <nusmv@fbk.eu>. 00026 00027 -----------------------------------------------------------------------------*/ 00028 00038 #ifndef __NUSMV_CORE_BMC_BMC_DUMP_H__ 00039 #define __NUSMV_CORE_BMC_BMC_DUMP_H__ 00040 00041 #include <stdio.h> 00042 00043 #include "nusmv/core/enc/be/BeEnc.h" 00044 00045 #include "nusmv/core/utils/utils.h" 00046 #include "nusmv/core/prop/Prop.h" 00047 00048 00049 /*---------------------------------------------------------------------------*/ 00050 /* Constant declarations */ 00051 /*---------------------------------------------------------------------------*/ 00052 00053 /*---------------------------------------------------------------------------*/ 00054 /* Type declarations */ 00055 /*---------------------------------------------------------------------------*/ 00056 00062 typedef enum { 00063 BMC_DUMP_NONE, 00064 BMC_DUMP_DIMACS, 00065 BMC_DUMP_DA_VINCI, 00066 BMC_DUMP_GDL 00067 } Bmc_DumpType; 00068 00069 /*---------------------------------------------------------------------------*/ 00070 /* Structure declarations */ 00071 /*---------------------------------------------------------------------------*/ 00072 00073 /*---------------------------------------------------------------------------*/ 00074 /* Variable declarations */ 00075 /*---------------------------------------------------------------------------*/ 00076 00077 /*---------------------------------------------------------------------------*/ 00078 /* Macro declarations */ 00079 /*---------------------------------------------------------------------------*/ 00080 00081 00084 /*---------------------------------------------------------------------------*/ 00085 /* Function prototypes */ 00086 /*---------------------------------------------------------------------------*/ 00087 00095 void 00096 Bmc_Dump_WriteProblem(const BeEnc_ptr be_enc, 00097 const Be_Cnf_ptr cnf, 00098 Prop_ptr prop, 00099 const int k, const int loop, 00100 const Bmc_DumpType dump_type, 00101 const char* dump_fname_template); 00102 00109 int 00110 Bmc_Dump_DimacsInvarProblemFilename(const BeEnc_ptr be_enc, 00111 const Be_Cnf_ptr cnf, 00112 const char* filename); 00113 00120 int 00121 Bmc_Dump_DimacsProblemFilename(const BeEnc_ptr be_enc, 00122 const Be_Cnf_ptr cnf, 00123 const char* filename, 00124 const int k); 00125 00131 void 00132 Bmc_Dump_DimacsInvarProblem(const BeEnc_ptr be_enc, 00133 const Be_Cnf_ptr cnf, 00134 FILE* dimacsfile); 00135 00141 void 00142 Bmc_Dump_DimacsProblem(const BeEnc_ptr be_enc, 00143 const Be_Cnf_ptr cnf, 00144 const int k, FILE* dimacsfile); 00145 00148 #endif /* __NUSMV_CORE_BMC_BMC_DUMP_H__ */ 00149