spot  1.99.4
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ltsmin.hh
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2011, 2013, 2014, 2015 Laboratoire de Recherche et
3 // Developpement 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 
20 #pragma once
21 
22 #include "kripke/kripke.hh"
23 #include "tl/apcollect.hh"
24 
25 namespace spot
26 {
27 
28  // \brief Load an ltsmin model, either from divine or promela.
29  //
30  // The filename given can be either a *.pm/*.pml/*.prom promela
31  // source or a *.spins dynamic library compiled with "spins file".
32  // If a promela source is supplied, this function will call spins to
33  // update the *.spins library only if it is not newer.
34  //
35  // Similarly the divine models can be specified as *.dve source or
36  // *.dve or *.dve2C libraries.
37  //
38  // The dead parameter is used to control the behavior of the model
39  // on dead states (i.e. the final states of finite sequences).
40  // If DEAD is "false", it means we are not
41  // interested in finite sequences of the system, and dead state
42  // will have no successor. If DEAD is
43  // "true", we want to check finite sequences as well as infinite
44  // sequences, but do not need to distinguish them. In that case
45  // dead state will have a loop labeled by true. If DEAD is any
46  // other string, this is the name a property that should be true
47  // when looping on a dead state, and false otherwise.
48  //
49  // This function returns 0 on error.
50  //
51  // \a file the name of the *.prom source file or the dynamic library
52  // \a to_observe the list of atomic propositions that should be observed
53  // in the model
54  // \a dict the BDD dictionary to use
55  // \a dead an atomic proposition or constant to use for looping on
56  // dead states
57  // \a verbose whether to output verbose messages
58  SPOT_API kripke_ptr
59  load_ltsmin(const std::string& file, const bdd_dict_ptr& dict,
60  const atomic_prop_set* to_observe,
61  formula dead = formula::tt(),
62  int compress = 0, bool verbose = true);
63 }
Definition: graph.hh:31
static formula tt()
Return the true constant.
Definition: formula.hh:1236
std::set< formula > atomic_prop_set
Set of atomic propositions.
Definition: apcollect.hh:36

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Thu Oct 1 2015 05:49:14 for spot by doxygen 1.8.8