spot  1.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
formula_tree.hh
Go to the documentation of this file.
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2009, 2012, 2013 Laboratoire de Recherche et
3 // Développement de l'Epita (LRDE).
4 //
5 // This file is part of Spot, a model checking library.
6 //
7 // Spot is free software; you can redistribute it and/or modify it
8 // under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // Spot is distributed in the hope that it will be useful, but WITHOUT
13 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 // License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 
22 #ifndef SPOT_LTLAST_FORMULA_TREE_HH
23 # define SPOT_LTLAST_FORMULA_TREE_HH
24 
25 # include "formula.hh"
26 # include <vector>
27 # include <boost/shared_ptr.hpp>
28 # include "multop.hh"
29 # include "binop.hh"
30 # include "unop.hh"
31 # include "nfa.hh"
32 
33 namespace spot
34 {
35  namespace ltl
36  {
38  namespace formula_tree
39  {
40  struct node
41  {
42  virtual ~node() {};
43  };
45  typedef boost::shared_ptr<node> node_ptr;
46 
47  struct node_unop : node
48  {
49  unop::type op;
50  node_ptr child;
51  };
52  struct node_binop : node
53  {
54  binop::type op;
55  node_ptr lhs;
56  node_ptr rhs;
57  };
58  struct node_multop : node
59  {
60  multop::type op;
61  node_ptr lhs;
62  node_ptr rhs;
63  };
64  struct node_nfa : node
65  {
66  std::vector<node_ptr> children;
67  spot::ltl::nfa::ptr nfa;
68  };
70  enum { True = -1, False = -2 };
71  struct node_atomic : node
72  {
73  int i;
74  };
75 
78  const formula* instanciate(const node_ptr np,
79  const std::vector<const formula*>& v);
80 
82  size_t arity(const node_ptr np);
83  }
84  }
85 }
86 
87 #endif // SPOT_LTLAST_FORMULA_TREE_HH_

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Wed Dec 11 2013 10:35:46 for spot by doxygen 1.8.4