00001 /* --------------------------------------------------------------------------- 00002 00003 00004 This file is part of the ``hrc'' package of NuSMV version 2. 00005 Copyright (C) 2009 by FBK. 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_PREFIX_UTILS_H__ 00039 #define __NUSMV_CORE_HRC_HRC_PREFIX_UTILS_H__ 00040 00041 #include "nusmv/core/set/set.h" 00042 #include "nusmv/core/node/node.h" 00043 #include "nusmv/core/hrc/hrc.h" 00044 #include "nusmv/core/cinit/NuSMVEnv.h" 00045 00046 /*---------------------------------------------------------------------------*/ 00047 /* Constant declarations */ 00048 /*---------------------------------------------------------------------------*/ 00049 00050 00051 /*---------------------------------------------------------------------------*/ 00052 /* Type declarations */ 00053 /*---------------------------------------------------------------------------*/ 00054 00055 00056 /*---------------------------------------------------------------------------*/ 00057 /* Structure declarations */ 00058 /*---------------------------------------------------------------------------*/ 00059 00060 00061 /*---------------------------------------------------------------------------*/ 00062 /* Variable declarations */ 00063 /*---------------------------------------------------------------------------*/ 00064 00065 00066 /*---------------------------------------------------------------------------*/ 00067 /* Macro declarations */ 00068 /*---------------------------------------------------------------------------*/ 00069 00070 00073 /*---------------------------------------------------------------------------*/ 00074 /* Function prototypes */ 00075 /*---------------------------------------------------------------------------*/ 00076 00086 Set_t hrc_prefix_utils_get_prefix_symbols(Set_t symbol_set, 00087 node_ptr prefix); 00088 00094 boolean 00095 hrc_prefix_utils_is_subprefix(node_ptr subprefix, node_ptr prefix); 00096 00106 node_ptr 00107 hrc_prefix_utils_add_context(NodeMgr_ptr nodemgr, 00108 node_ptr context, node_ptr expression); 00109 00120 node_ptr hrc_prefix_utils_get_first_subcontext(node_ptr symbol); 00121 00128 node_ptr hrc_prefix_utils_remove_context(NodeMgr_ptr nodemgr, 00129 node_ptr identifier, 00130 node_ptr context); 00131 00139 node_ptr 00140 hrc_prefix_utils_assign_module_name(HrcNode_ptr instance, 00141 node_ptr instance_name); 00142 00143 node_ptr hrc_prefix_utils_concat_context(const NuSMVEnv_ptr env, 00144 node_ptr ctx1, 00145 node_ptr ctx2); 00146 00147 node_ptr hrc_prefix_utils_contextualize_expr(const NuSMVEnv_ptr env, 00148 node_ptr expr, 00149 node_ptr context); 00150 00151 00154 #endif /* __NUSMV_CORE_HRC_HRC_PREFIX_UTILS_H__ */