spot  2.7.4
contain.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016 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 <spot/tl/formula.hh>
26 #include <spot/twaalgos/ltl2tgba_fm.hh>
27 #include <spot/misc/hash.hh>
28 #include <map>
29 
30 namespace spot
31 {
34  {
35  struct record_
36  {
37  const_twa_graph_ptr translation;
38  typedef std::map<const record_*, bool> incomp_map;
39  incomp_map incompatible;
40  };
41  typedef std::unordered_map<formula, record_> trans_map;
42  public:
45  language_containment_checker(bdd_dict_ptr dict = make_bdd_dict(),
46  bool exprop = false,
47  bool symb_merge = true,
48  bool branching_postponement = false,
49  bool fair_loop_approx = false);
50 
52 
54  void clear();
55 
57  bool contained(formula l, formula g);
59  bool neg_contained(formula l, formula g);
61  bool contained_neg(formula l, formula g);
62 
64  bool equal(formula l, formula g);
65 
66  protected:
67  bool incompatible_(record_* l, record_* g);
68 
69  record_* register_formula_(formula f);
70 
71  /* Translation options */
72  bdd_dict_ptr dict_;
73  bool exprop_;
74  bool symb_merge_;
75  bool branching_postponement_;
76  bool fair_loop_approx_;
77  /* Translation Maps */
78  trans_map translated_;
79  };
80 }
Definition: automata.hh:26
LTL/PSL formula interface.
Main class for temporal logic formula.
Definition: formula.hh:685
Check containment between LTL formulae.
Definition: contain.hh:33

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.8.13