spot  2.16
ltsmin.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) by the Spot authors, see the AUTHORS file for details.
3 //
4 // This file is part of Spot, a model checking library.
5 //
6 // Spot is free software; you can redistribute it and/or modify it
7 // under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // Spot is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 // License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 #pragma once
20 
21 #include <spot/ltsmin/spins_interface.hh>
22 #include <spot/ltsmin/spins_kripke.hh>
23 #include <spot/kripke/kripke.hh>
24 #include <spot/twacube/twacube.hh>
25 #include <spot/tl/apcollect.hh>
26 #include <tuple>
27 
33 
34 namespace spot
35 {
38  class SPOT_API ltsmin_model final
39  {
40  public:
41  ~ltsmin_model();
42 
53  static ltsmin_model load(const std::string& file);
54 
78  kripke_ptr kripke(const atomic_prop_set* to_observe,
79  bdd_dict_ptr dict,
80  formula dead = formula::tt(),
81  int compress = 0) const;
82 
86  ltsmin_kripkecube_ptr kripkecube(std::vector<std::string> to_observe,
87  formula dead = formula::tt(),
88  int compress = 0,
89  unsigned int nb_threads = 1) const;
90 
92  int state_size() const;
94  const char* state_variable_name(int var) const;
96  int state_variable_type(int var) const;
98  int type_count() const;
100  const char* type_name(int type) const;
102  int type_value_count(int type);
104  const char* type_value_name(int type, int val);
105 
106  private:
107  ltsmin_model(std::shared_ptr<const spins_interface> iface) : iface(iface)
108  {
109  }
110  std::shared_ptr<const spins_interface> iface;
111  };
112 }
Main class for temporal logic formula.
Definition: formula.hh:847
static formula tt()
Return the true constant.
Definition: formula.hh:1883
A loaded LTSmin model that can generate Kripke structures on-the-fly.
Definition: ltsmin.hh:39
const char * type_name(int type) const
Name of each type.
int type_value_count(int type)
Count of enumerated values for a type.
int type_count() const
Number of different types.
const char * type_value_name(int type, int val)
Name of each enumerated value for a type.
static ltsmin_model load(const std::string &file)
Load an ltsmin model, either from divine or promela.
int state_variable_type(int var) const
Type of each variable.
ltsmin_kripkecube_ptr kripkecube(std::vector< std::string > to_observe, formula dead=formula::tt(), int compress=0, unsigned int nb_threads=1) const
The same as above but returns a kripkecube, i.e., a kripke that can be used in parallel....
kripke_ptr kripke(const atomic_prop_set *to_observe, bdd_dict_ptr dict, formula dead=formula::tt(), int compress=0) const
Generate a Kripke structure on-the-fly.
const char * state_variable_name(int var) const
Name of each variable.
int state_size() const
Number of variables in a state.
std::shared_ptr< kripke > kripke_ptr
Definition: fwd.hh:33
std::shared_ptr< spot::kripkecube< spot::cspins_state, spot::cspins_iterator > > ltsmin_kripkecube_ptr
shortcut to manipulate the kripke below
Definition: spins_kripke.hh:279
std::set< formula > atomic_prop_set
Set of atomic propositions.
Definition: apcollect.hh:34
std::shared_ptr< bdd_dict > bdd_dict_ptr
Shared pointer to a bdd_dict.
Definition: bdddict.hh:304
Definition: automata.hh:26

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.9.1