ltsmin: fix test cases and naming.

* iface/ltsmin/kripke.test: Fix detection of divine's ltsmin option.
* iface/ltsmin/finite.test: Likewise.  Also extra the Spins test
into...
* iface/ltsmin/finite2.test: ... this new file, so that we
can test the divine and spins interfaces independently.
* iface/ltsmin/Makefile.am: Distribute finite2.test and finite.pm.
* iface/ltsmin/ltsmin.cc, iface/ltsmin/ltsmin.hh,
iface/ltsmin/modelcheck.cc: Adjust function names.
This commit is contained in:
Alexandre Duret-Lutz 2014-12-07 00:31:01 +01:00
parent dd4b821d93
commit 3e266a2a6c
8 changed files with 92 additions and 65 deletions

View file

@ -998,7 +998,7 @@ namespace spot
struct stat d;
if (stat(filename.c_str(), &d) == 0)
if (s.st_mtime < d.st_mtime)
// The .prom.spins is up-to-date, no need to recompile it.
// The .spins or .dve2C is up-to-date, no need to recompile it.
return false;
int res = system(command.c_str());
@ -1014,11 +1014,9 @@ namespace spot
}
kripke_ptr
load_model(const std::string& file_arg, const bdd_dict_ptr& dict,
const ltl::atomic_prop_set* to_observe,
const ltl::formula* dead,
int compress,
bool verbose)
load_ltsmin(const std::string& file_arg, const bdd_dict_ptr& dict,
const ltl::atomic_prop_set* to_observe,
const ltl::formula* dead, int compress, bool verbose)
{
std::string file;
if (file_arg.find_first_of("/\\") != std::string::npos)
@ -1104,8 +1102,7 @@ namespace spot
lt_dlsym(h, "get_state_variable_type_value");
}
if (!(
d->get_initial_state
if (!(d->get_initial_state
&& d->get_successors
&& d->get_state_size
&& d->get_state_variable_name