00001 00002 /* --------------------------------------------------------------------------- 00003 00004 00005 This file is part of the ``enc.bool'' package of NuSMV version 2. 00006 Copyright (C) 2004 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_ENC_BOOL_BOOL_ENC_PRIVATE_H__ 00041 #define __NUSMV_CORE_ENC_BOOL_BOOL_ENC_PRIVATE_H__ 00042 00043 00044 #include "nusmv/core/enc/bool/BoolEnc.h" 00045 #include "nusmv/core/enc/base/BaseEnc_private.h" 00046 00047 #include "nusmv/core/utils/utils.h" 00048 #include "nusmv/core/utils/assoc.h" 00049 00050 00059 typedef struct BoolEnc_TAG 00060 { 00061 /* this MUST stay on the top */ 00062 INHERITS_FROM(BaseEnc); 00063 00064 /* -------------------------------------------------- */ 00065 /* Private members */ 00066 /* -------------------------------------------------- */ 00067 hash_ptr var2enc; /* var -> boolean encoding hash */ 00068 hash_ptr var2mask; /* var -> mask encoding hash */ 00069 00070 /* -------------------------------------------------- */ 00071 /* Virtual methods */ 00072 /* -------------------------------------------------- */ 00073 00074 } BoolEnc; 00075 00076 00077 00078 /* ---------------------------------------------------------------------- */ 00079 /* Private methods to be used by derivated and friend classes only */ 00080 /* ---------------------------------------------------------------------- */ 00085 void bool_enc_init(BoolEnc_ptr self, SymbTable_ptr symb_table); 00090 void bool_enc_deinit(BoolEnc_ptr self); 00091 00092 void bool_enc_remove_layer(BaseEnc_ptr enc_base, 00093 const char* layer_name); 00094 00095 void bool_enc_commit_layer(BaseEnc_ptr enc_base, 00096 const char* layer_name); 00097 00098 00099 #endif /* __NUSMV_CORE_ENC_BOOL_BOOL_ENC_PRIVATE_H__ */