00001 00002 /* --------------------------------------------------------------------------- 00003 00004 00005 This file is part of the ``fsm.sexp'' package of NuSMV version 2. 00006 Copyright (C) 2009 by FBK-irst. 00007 00008 NuSMV version 2 is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Lesser General Public 00010 License as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later version. 00012 00013 NuSMV version 2 is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this library; if not, write to the Free Software 00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 00021 00022 For more information on NuSMV see <http://nusmv.fbk.eu> 00023 or email to <nusmv-users@fbk.eu>. 00024 Please report bugs to <nusmv-users@fbk.eu>. 00025 00026 To contact the NuSMV development board, email to <nusmv@fbk.eu>. 00027 00028 -----------------------------------------------------------------------------*/ 00029 00040 #ifndef __NUSMV_CORE_FSM_SEXP_SEXP_FSM_PRIVATE_H__ 00041 #define __NUSMV_CORE_FSM_SEXP_SEXP_FSM_PRIVATE_H__ 00042 00043 00044 #include "nusmv/core/fsm/sexp/SexpFsm.h" 00045 00046 #include "nusmv/core/compile/compile.h" 00047 #include "nusmv/core/compile/FlatHierarchy.h" 00048 #include "nusmv/core/set/set.h" 00049 00050 #include "nusmv/core/utils/assoc.h" 00051 #include "nusmv/core/utils/NodeList.h" 00052 #include "nusmv/core/utils/object_private.h" 00053 #include "nusmv/core/utils/object.h" 00054 #include "nusmv/core/utils/utils.h" 00055 00056 00066 typedef struct SexpFsm_TAG 00067 { 00068 /* this MUST stay on the top */ 00069 INHERITS_FROM(Object); 00070 00071 /* -------------------------------------------------- */ 00072 /* Private members */ 00073 /* -------------------------------------------------- */ 00074 SymbTable_ptr st; /* the symbol table */ 00075 FlatHierarchy_ptr hierarchy; /* contains fsm data */ 00076 Set_t vars_set; 00077 NodeList_ptr symbols; 00078 00079 hash_ptr hash_var_fsm; 00080 node_ptr const_var_fsm; 00081 00082 int* family_counter; /* for reference counting */ 00083 00084 /* flag controlling inlining operations */ 00085 boolean inlining; 00086 00087 /* flag to recognize boolean fsm from scalar */ 00088 boolean is_boolean; 00089 00090 /* -------------------------------------------------- */ 00091 /* Virtual methods */ 00092 /* -------------------------------------------------- */ 00093 00094 } SexpFsm; 00095 00096 00097 00098 /* ---------------------------------------------------------------------- */ 00099 /* Private methods to be used by derivated and friend classes only */ 00100 /* ---------------------------------------------------------------------- */ 00101 00110 void sexp_fsm_init(SexpFsm_ptr self, 00111 const FlatHierarchy_ptr hierarchy, 00112 const Set_t vars_set); 00113 00120 void sexp_fsm_deinit(SexpFsm_ptr self); 00121 00128 void sexp_fsm_copy_aux(const SexpFsm_ptr self, SexpFsm_ptr copy); 00129 00130 00131 #endif /* __NUSMV_CORE_FSM_SEXP_SEXP_FSM_PRIVATE_H__ */