00001 /* --------------------------------------------------------------------------- 00002 00003 00004 This file is part of the ``hrc'' package of NuSMV version 2. 00005 Copyright (C) 2009 by FBK-irst. 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_HRC_HRC_H__ 00039 #define __NUSMV_CORE_HRC_HRC_H__ 00040 00041 #include "nusmv/core/hrc/HrcNode.h" 00042 #include "nusmv/core/hrc/dumpers/HrcDumper.h" 00043 00044 #include "nusmv/core/set/set.h" 00045 #include "nusmv/core/utils/utils.h" 00046 #include "nusmv/core/cinit/NuSMVEnv.h" 00047 00048 /*---------------------------------------------------------------------------*/ 00049 /* Constant declarations */ 00050 /*---------------------------------------------------------------------------*/ 00051 00052 00053 /*---------------------------------------------------------------------------*/ 00054 /* Type declarations */ 00055 /*---------------------------------------------------------------------------*/ 00062 typedef enum HrcDumpFormat_TAG { 00063 HRC_DUMP_FORMAT_INVALID = 0, 00064 HRC_DUMP_FORMAT_DEBUG = 1, 00065 HRC_DUMP_FORMAT_SMV, 00066 HRC_DUMP_FORMAT_XML 00067 } HrcDumpFormat; 00068 00069 HrcDumpFormat Hrc_dump_format_str_to_enum(char* format); 00070 char* Hrc_dump_format_enum_to_str(HrcDumpFormat format); 00071 char* Hrc_dump_format_get_available(void); 00072 00073 /*---------------------------------------------------------------------------*/ 00074 /* Structure declarations */ 00075 /*---------------------------------------------------------------------------*/ 00076 00077 00078 /*---------------------------------------------------------------------------*/ 00079 /* Variable declarations */ 00080 /*---------------------------------------------------------------------------*/ 00081 00082 00083 /*---------------------------------------------------------------------------*/ 00084 /* Macro declarations */ 00085 /*---------------------------------------------------------------------------*/ 00086 00087 00090 /*---------------------------------------------------------------------------*/ 00091 /* Function prototypes */ 00092 /*---------------------------------------------------------------------------*/ 00093 00103 void Hrc_init(NuSMVEnv_ptr env); 00104 00113 void Hrc_quit(NuSMVEnv_ptr env); 00114 00129 int Hrc_WriteModel(HrcNode_ptr self, 00130 FILE * ofile, 00131 boolean append_suffix); 00132 00145 void Hrc_DumpModel(HrcNode_ptr hrcNode, HrcDumper_ptr dumper); 00146 00155 int 00156 Hrc_dump_model(const NuSMVEnv_ptr env, 00157 HrcDumpFormat format, 00158 FILE* ofileid, 00159 const boolean append_suffix, 00160 const boolean use_indent); 00161 00164 #endif /* __NUSMV_CORE_HRC_HRC_H__ */