00001 /* --------------------------------------------------------------------------- 00002 00003 00004 This file is part of the ``prop'' package of NuSMV version 2. 00005 Copyright (C) 2013 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 00039 #ifndef __NUSMV_CORE_PROP_PROP_REWRITER_H__ 00040 #define __NUSMV_CORE_PROP_PROP_REWRITER_H__ 00041 00042 00043 #include "nusmv/core/utils/object.h" 00044 #include "nusmv/core/utils/defs.h" 00045 #include "nusmv/core/prop/Prop.h" 00046 #include "nusmv/core/wff/wffRewrite.h" 00047 #include "nusmv/core/fsm/fsm.h" 00048 00055 typedef struct Prop_Rewriter_TAG* Prop_Rewriter_ptr; 00056 00063 #define PROP_REWRITER(self) \ 00064 ((Prop_Rewriter_ptr) self) 00065 00071 #define PROP_REWRITER_CHECK_INSTANCE(self) \ 00072 (nusmv_assert(PROP_REWRITER(self) != PROP_REWRITER(NULL))) 00073 00074 00075 00078 /*---------------------------------------------------------------------------*/ 00079 /* Function prototypes */ 00080 /*---------------------------------------------------------------------------*/ 00081 00082 /* Constructors, Destructors, Copiers and Cleaners ****************************/ 00083 00094 Prop_Rewriter_ptr Prop_Rewriter_create(NuSMVEnv_ptr env, 00095 Prop_ptr prop, 00096 WffRewriteMethod method, 00097 WffRewriterExpectedProperty expprop, 00098 FsmType fsm_type, 00099 BddEnc_ptr bddenc); 00100 00109 void Prop_Rewriter_destroy(Prop_Rewriter_ptr self); 00110 00111 00112 /* Getters and Setters ********************************************************/ 00113 00120 Prop_ptr Prop_Rewriter_get_original_property(Prop_Rewriter_ptr self); 00121 00122 00123 /* Miscellaneous **************************************************************/ 00124 00133 Prop_ptr Prop_Rewriter_rewrite(Prop_Rewriter_ptr self); 00134 00141 void Prop_Rewriter_update_original_property(Prop_Rewriter_ptr self); 00142 00150 void Prop_Rewriter_make_monitor_vars_visible(Prop_Rewriter_ptr self); 00151 00160 void Prop_Rewriter_make_monitor_vars_invisible(Prop_Rewriter_ptr self); 00161 00169 void Prop_Rewriter_initialize_monitor_vars_to_true(Prop_Rewriter_ptr self); 00170 00178 void Prop_Rewriter_initialize_monitor_vars_to_false(Prop_Rewriter_ptr self); 00179 00185 void Prop_Rewriter_ltl2invar_negate_property_to_true(Prop_Rewriter_ptr self); 00186 00192 void Prop_Rewriter_ltl2invar_negate_property_to_false(Prop_Rewriter_ptr self); 00193 00198 #endif /* __NUSMV_CORE_PROP_PROP_REWRITER_H__ */