spot/iface/gspn/dottygspn.cc
Alexandre Duret-Lutz 94a9543f38 * m4/gspnlib.m4: Check for libgspnRG.a and libgspnSRG.a.
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.
2003-07-22 13:11:32 +00:00

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;
}