* configure.ac, iface/Makefile.am: Adjust. * iface/dve2/finite.test, iface/dve2/.gitignore, iface/dve2/Makefile.am, iface/dve2/README, iface/dve2/beem-peterson.4.dve, iface/dve2/dve2check.test, iface/dve2/defs.in, iface/dve2/finite.dve, iface/ltsmin/finite.test, iface/dve2/kripke.test, iface/dve2/dve2.cc, iface/dve2/dve2.hh, iface/dve2/dve2check.cc: Move to iface/ltsmin. * iface/ltsmin/.gitignore, iface/ltsmin/Makefile.am, iface/ltsmin/README, iface/ltsmin/beem-peterson.4.dve, iface/ltsmin/check.test, iface/ltsmin/defs.in, iface/ltsmin/finite.dve, iface/ltsmin/finite.test, iface/ltsmin/kripke.test, iface/ltsmin/ltsmin.cc, iface/ltsmin/ltsmin.hh, iface/ltsmin/modelcheck.cc: Factorize dve2 and spins interface in iface/ltsmin/ * iface/ltsmin/elevator2.1.pm, iface/ltsmin/finite.pm: Test promela models. * README: Document iface/ltsmin/ directory.
65 lines
2.5 KiB
C++
65 lines
2.5 KiB
C++
// -*- coding: utf-8 -*-
|
|
// Copyright (C) 2011, 2013, 2014 Laboratoire de Recherche et
|
|
// Developpement de l'Epita (LRDE)
|
|
//
|
|
// This file is part of Spot, a model checking library.
|
|
//
|
|
// Spot is free software; you can redistribute it and/or modify it
|
|
// under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation; either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Spot is distributed in the hope that it will be useful, but WITHOUT
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
// License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#ifndef SPOT_IFACE_PROMELA_PROMELA_HH
|
|
# define SPOT_IFACE_PROMELA_PROMELA_HH
|
|
|
|
#include "kripke/kripke.hh"
|
|
#include "ltlvisit/apcollect.hh"
|
|
#include "ltlast/constant.hh"
|
|
|
|
|
|
namespace spot
|
|
{
|
|
|
|
// \brief Load a PROMELA model.
|
|
//
|
|
// The filename given can be either a *.prom source or a *.spins
|
|
// dynamic library compiled with "spins file".
|
|
// When the *.prom source is supplied, the *.spins will be updated
|
|
// only if it is not newer.
|
|
//
|
|
// The dead parameter is used to control the behavior of the model
|
|
// on dead states (i.e. the final states of finite sequences).
|
|
// If DEAD is "false", it means we are not
|
|
// interested in finite sequences of the system, and dead state
|
|
// will have no successor. If DEAD is
|
|
// "true", we want to check finite sequences as well as infinite
|
|
// sequences, but do not need to distinguish them. In that case
|
|
// dead state will have a loop labeled by true. If DEAD is any
|
|
// other string, this is the name a property that should be true
|
|
// when looping on a dead state, and false otherwise.
|
|
//
|
|
// This function returns 0 on error.
|
|
//
|
|
// \a file the name of the *.prom source file or the dynamic library
|
|
// \a to_observe the list of atomic propositions that should be observed
|
|
// in the model
|
|
// \a dict the BDD dictionary to use
|
|
// \a dead an atomic proposition or constant to use for looping on
|
|
// dead states
|
|
// \a verbose whether to output verbose messages
|
|
SPOT_API kripke_ptr
|
|
load_model(const std::string& file, const bdd_dict_ptr& dict,
|
|
const ltl::atomic_prop_set* to_observe,
|
|
const ltl::formula* dead = ltl::constant::true_instance(),
|
|
int compress = 0, bool verbose = true);
|
|
}
|
|
|
|
#endif // SPOT_IFACE_PROMELA_PROMELA_HH
|