00001 00002 /* --------------------------------------------------------------------------- 00003 00004 00005 This file is part of the ``compass.compile'' package of NuSMV version 2. 00006 Copyright (C) 2008 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_ADDONS_CORE_COMPASS_COMPILE_PROB_ASSIGN_H__ 00041 #define __NUSMV_ADDONS_CORE_COMPASS_COMPILE_PROB_ASSIGN_H__ 00042 00043 00044 #include "nusmv/core/node/node.h" 00045 #include "nusmv/core/utils/utils.h" 00046 00053 typedef struct ProbAssign_TAG* ProbAssign_ptr; 00054 00061 #define PROB_ASSIGN(self) \ 00062 ((ProbAssign_ptr) self) 00063 00069 #define PROB_ASSIGN_CHECK_INSTANCE(self) \ 00070 (nusmv_assert(PROB_ASSIGN(self) != PROB_ASSIGN(NULL))) 00071 00072 00073 00076 /*---------------------------------------------------------------------------*/ 00077 /* Function prototypes */ 00078 /*---------------------------------------------------------------------------*/ 00079 00088 ProbAssign_ptr 00089 ProbAssign_create(node_ptr assigns, node_ptr value); 00090 00099 void ProbAssign_destroy(ProbAssign_ptr self); 00100 00107 node_ptr 00108 ProbAssign_get_assigns_expr(const ProbAssign_ptr self); 00109 00116 node_ptr ProbAssign_get_prob(const ProbAssign_ptr self); 00117 00118 00123 #endif /* __NUSMV_ADDONS_CORE_COMPASS_COMPILE_PROB_ASSIGN_H__ */