spot  1.99.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
contain.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2011, 2012, 2013, 2014, 2015 Laboratoire de Recherche
3 // et Développement de l'Epita (LRDE).
4 // Copyright (C) 2006 Laboratoire d'Informatique de Paris 6 (LIP6),
5 // département Systèmes Répartis Coopératifs (SRC), Université Pierre
6 // et Marie Curie.
7 //
8 // This file is part of Spot, a model checking library.
9 //
10 // Spot is free software; you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation; either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Spot is distributed in the hope that it will be useful, but WITHOUT
16 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18 // License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program. If not, see <http://www.gnu.org/licenses/>.
22 
23 #pragma once
24 
25 #include "ltlast/formula.hh"
26 #include "twaalgos/ltl2tgba_fm.hh"
27 #include "misc/hash.hh"
28 #include <map>
29 
30 namespace spot
31 {
32  namespace ltl
33  {
36  {
37  struct record_
38  {
39  const_twa_graph_ptr translation;
40  typedef std::map<const record_*, bool> incomp_map;
41  incomp_map incompatible;
42  };
43  typedef std::unordered_map<const formula*, record_> trans_map;
44  public:
47  language_containment_checker(const bdd_dict_ptr& dict, bool exprop,
48  bool symb_merge,
49  bool branching_postponement,
50  bool fair_loop_approx);
51 
53 
55  void clear();
56 
58  bool contained(const formula* l, const formula* g);
60  bool neg_contained(const formula* l, const formula* g);
62  bool contained_neg(const formula* l, const formula* g);
63 
65  bool equal(const formula* l, const formula* g);
66 
67  protected:
68  bool incompatible_(record_* l, record_* g);
69 
70  record_* register_formula_(const formula* f);
71 
72  /* Translation options */
73  bdd_dict_ptr dict_;
74  bool exprop_;
75  bool symb_merge_;
76  bool branching_postponement_;
77  bool fair_loop_approx_;
78  /* Translation Maps */
79  trans_map translated_;
80  };
81  }
82 }
Definition: public.hh:31
LTL formula interface.
Check containment between LTL formulae.
Definition: contain.hh:35
An LTL formula.
Definition: formula.hh:71

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Wed Aug 26 2015 08:42:37 for spot by doxygen 1.8.8