Call divine to compile dve models.

* 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.
This commit is contained in:
Alexandre Duret-Lutz 2011-03-06 21:06:52 +01:00
parent 4a62224932
commit 51e6989d91
3 changed files with 96 additions and 2 deletions

View file

@ -28,6 +28,22 @@
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,