00001 /* --------------------------------------------------------------------------- 00002 00003 00004 This file is part of the ``fsm.bdd'' package of NuSMV version 2. 00005 Copyright (C) 2003 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_FSM_BDD_BDD_H__ 00039 #define __NUSMV_CORE_FSM_BDD_BDD_H__ 00040 00041 #include "nusmv/core/dd/dd.h" 00042 00043 00044 /*---------------------------------------------------------------------------*/ 00045 /* Constant declarations */ 00046 /*---------------------------------------------------------------------------*/ 00047 00053 #define BDD_ELFWD_OPT_FORWARD_SEARCH 1 00054 00060 #define BDD_ELFWD_OPT_LTL_TABLEAU_FORWARD_SEARCH 2 00061 00067 #define BDD_ELFWD_OPT_USE_REACHABLE_STATES 4 00068 00074 #define BDD_ELFWD_OPT_COUNTER_EXAMPLES 8 00075 00081 #define BDD_ELFWD_OPT_ALL (BDD_ELFWD_OPT_FORWARD_SEARCH | \ 00082 BDD_ELFWD_OPT_LTL_TABLEAU_FORWARD_SEARCH | \ 00083 BDD_ELFWD_OPT_USE_REACHABLE_STATES | \ 00084 BDD_ELFWD_OPT_COUNTER_EXAMPLES) 00085 00086 /*---------------------------------------------------------------------------*/ 00087 /* Type declarations */ 00088 /*---------------------------------------------------------------------------*/ 00089 00095 typedef bdd_ptr BddStates; 00096 00102 #define BDD_STATES(x) \ 00103 ((BddStates) x) 00104 00105 typedef bdd_ptr BddInputs; 00106 00112 #define BDD_INPUTS(x) \ 00113 ((BddInputs) x) 00114 00115 typedef bdd_ptr BddStatesInputs; 00116 00122 #define BDD_STATES_INPUTS(x) \ 00123 ((BddStatesInputs) x) 00124 00125 typedef bdd_ptr BddStatesInputsNexts; 00126 00132 #define BDD_STATES_INPUTS_NEXTS(x) \ 00133 ((BddStatesInputsNexts) x) 00134 00135 typedef bdd_ptr BddInvarStates; 00136 00142 #define BDD_INVAR_STATES(x) \ 00143 ((BddInvarStates) x) 00144 00145 typedef bdd_ptr BddInvarInputs; 00146 00152 #define BDD_INVAR_INPUTS(x) \ 00153 ((BddInvarInputs) x) 00154 00167 typedef struct BddELFwdSavedOptions_TAG* BddELFwdSavedOptions_ptr; 00168 00184 enum BddOregJusticeEmptinessBddAlgorithmType_TAG { 00185 BDD_OREG_JUSTICE_EMPTINESS_BDD_ALGORITHM_INVALID = -1, 00186 BDD_OREG_JUSTICE_EMPTINESS_BDD_ALGORITHM_EL_BWD = 0, 00187 BDD_OREG_JUSTICE_EMPTINESS_BDD_ALGORITHM_EL_FWD, 00188 00189 BDD_OREG_JUSTICE_EMPTINESS_BDD_ALGORITHM_MIN_VALID = 00190 BDD_OREG_JUSTICE_EMPTINESS_BDD_ALGORITHM_EL_BWD, 00191 BDD_OREG_JUSTICE_EMPTINESS_BDD_ALGORITHM_MAX_VALID = 00192 BDD_OREG_JUSTICE_EMPTINESS_BDD_ALGORITHM_EL_FWD 00193 }; 00194 typedef enum BddOregJusticeEmptinessBddAlgorithmType_TAG 00195 BddOregJusticeEmptinessBddAlgorithmType; 00196 00197 /*---------------------------------------------------------------------------*/ 00198 /* Structure declarations */ 00199 /*---------------------------------------------------------------------------*/ 00200 00201 /*---------------------------------------------------------------------------*/ 00202 /* Variable declarations */ 00203 /*---------------------------------------------------------------------------*/ 00204 00205 /*---------------------------------------------------------------------------*/ 00206 /* Macro declarations */ 00207 /*---------------------------------------------------------------------------*/ 00208 00211 /*---------------------------------------------------------------------------*/ 00212 /* Function prototypes */ 00213 /*---------------------------------------------------------------------------*/ 00214 00225 BddOregJusticeEmptinessBddAlgorithmType 00226 Bdd_BddOregJusticeEmptinessBddAlgorithmType_from_string(const char* name); 00227 00240 const char* Bdd_BddOregJusticeEmptinessBddAlgorithmType_to_string(const BddOregJusticeEmptinessBddAlgorithmType self); 00241 00254 void 00255 Bdd_print_available_BddOregJusticeEmptinessBddAlgorithms(FILE *file); 00256 00269 boolean Bdd_elfwd_check_options(NuSMVEnv_ptr env, 00270 unsigned int which_options, 00271 boolean on_fail_print); 00272 00295 BddELFwdSavedOptions_ptr 00296 Bdd_elfwd_check_set_and_save_options(NuSMVEnv_ptr env, 00297 unsigned int which_options); 00298 00310 void 00311 Bdd_elfwd_restore_options(NuSMVEnv_ptr env, 00312 unsigned int which_options, 00313 BddELFwdSavedOptions_ptr saved_options); 00314 00318 #endif /* __NUSMV_CORE_FSM_BDD_BDD_H__ */