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