* configure.ac: Call AX_CHECK_GSPNLIB. * Makefile.am (EXTRA_DIST): Add m4/gspnlib.m4. * iface/gspn/Makefile.am (AM_CPPFLAGS): Add $(LIBGSPN_CPPFLAGS). (libspotgspn_la_LIBADD, check_PROGRAMS, dottygspn_SOURCES, dottygspn_LDADD): New variables. * iface/gspn/gspn.hh (gspn_interface): New class. (gspn_exeption): Take a string argument and adjust all callers. (operator<<): Define for gspn_exeption. * iface/gspn/gspn.cc (gspn_interface::gspn_interface, gspn_interface::~gspn_interface): New. * iface/gspn/gspnlib.h: Delete, it belongs to GSPN. * iface/gspn/dottygspn.cc: New file.
26 lines
479 B
C++
26 lines
479 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;
|
|
}
|
|
|