Define LIBGSPNRG_LDFLAGS and LIBGSPNSRG_LDFLAGS, not LIBGSPN_LDFLAGS. * iface/gspn/Makefile.am: Adjust, build dottygspn-rg and dottygspn-srg instead of dottygspn. * iface/gspn/gspn.cc (EVENT_TRUE): Undefine. (tgba_gspn_private_::~tgba_gspn_private_): Free all_indexes. * iface/gspn/dottygspn.cc (main): Destroy the automaton before its dictionnary.
27 lines
458 B
C++
27 lines
458 B
C++
#include "gspn.hh"
|
|
#include "tgbaalgos/dotty.hh"
|
|
|
|
int
|
|
main(int argc, char **argv)
|
|
try
|
|
{
|
|
spot::gspn_interface gspn(argc, argv);
|
|
|
|
spot::gspn_environment env;
|
|
env.declare("obs");
|
|
|
|
spot::bdd_dict* dict = new spot::bdd_dict();
|
|
|
|
{
|
|
spot::tgba_gspn a(dict, env);
|
|
|
|
spot::dotty_reachable(std::cout, &a);
|
|
}
|
|
|
|
delete dict;
|
|
}
|
|
catch (spot::gspn_exeption e)
|
|
{
|
|
std::cerr << e << std::endl;
|
|
throw;
|
|
}
|