spot
0.9.1
|
00001 // Copyright (C) 2010, 2011, 2012 Laboratoire de Recherche et 00002 // Développement de l'Epita (LRDE). 00003 // 00004 // This file is part of Spot, a model checking library. 00005 // 00006 // Spot is free software; you can redistribute it and/or modify it 00007 // under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 2 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // Spot is distributed in the hope that it will be useful, but WITHOUT 00012 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00013 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00014 // License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with Spot; see the file COPYING. If not, write to the Free 00018 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00019 // 02111-1307, USA. 00020 00021 #ifndef SPOT_LTLVISIT_MARK_HH 00022 # define SPOT_LTLVISIT_MARK_HH 00023 00024 #include "ltlast/formula.hh" 00025 #include "ltlast/visitor.hh" 00026 #include "misc/hash.hh" 00027 00028 namespace spot 00029 { 00030 namespace ltl 00031 { 00032 class mark_tools 00033 { 00034 public: 00039 const formula* mark_concat_ops(const formula* f); 00040 00041 const formula* simplify_mark(const formula* f); 00042 00043 mark_tools(); 00044 ~mark_tools(); 00045 00046 private: 00047 typedef Sgi::hash_map<const formula*, const formula*, 00048 ptr_hash<formula> > f2f_map; 00049 f2f_map simpmark_; 00050 f2f_map markops_; 00051 visitor* simpvisitor_; 00052 visitor* markvisitor_; 00053 }; 00054 00055 } 00056 } 00057 00058 #endif // SPOT_LTLVISIT_MARK_HH