* iface/dve2/dve2.cc (compile_dve2): New function. Compile the *.dve source if there is no newer *.dve2C already. (load_dve2): Call compile_dve2 when given a *.dve file. * iface/dve2/dve2.hh (load_dve2): Document it.
53 lines
1.7 KiB
C++
53 lines
1.7 KiB
C++
// Copyright (C) 2011 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 2 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 Spot; see the file COPYING. If not, write to the Free
|
|
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
// 02111-1307, USA.
|
|
|
|
#ifndef SPOT_IFACE_DVE2_DVE2_HH
|
|
# define SPOT_IFACE_DVE2_DVE2_HH
|
|
|
|
#include "kripke/kripke.hh"
|
|
#include "ltlvisit/apcollect.hh"
|
|
|
|
|
|
|
|
namespace spot
|
|
{
|
|
|
|
// \brief Load a DVE model.
|
|
//
|
|
// The filename given can be either a *.dve source or a *.dve2C
|
|
// dynamic library compiled with "divine compile --ltsmin file".
|
|
// When the *.dve source is supplied, the *.dve2C will be updated
|
|
// only if it is not newer.
|
|
//
|
|
// This function returns 0 on error.
|
|
//
|
|
// \a file the name of the *.dve source file or of the *.dve2C
|
|
// 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 verbose whether to output verbose messages
|
|
kripke* load_dve2(const std::string& file,
|
|
bdd_dict* dict,
|
|
ltl::atomic_prop_set* to_observe,
|
|
bool verbose = true);
|
|
}
|
|
|
|
#endif // SPOT_IFACE_DVE2_DVE2_HH
|