* configure.ac: Output src/tgbatest/Makefile and src/tgbatest/defs.
* src/Makefile.am (SUBDIRS): Add tgbatest. * src/tgba/tgbaexplicit.hh, src/tgba/tgbaexplicit.cc: New file. * src/tgba/Makefile.am (libtgba_la_SOURCES): Add tgbaexplicit.cc and tgbaexplicit.hh. * src/tgbatest/Makefile.am, src/tgbatest/defs.in, src/tgbatest/explicit.cc, src/tgbatest/explicit.test: New files.
This commit is contained in:
parent
b8bb100521
commit
80dd0ae140
12 changed files with 417 additions and 4 deletions
26
src/tgbatest/explicit.cc
Normal file
26
src/tgbatest/explicit.cc
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include <iostream>
|
||||
#include "ltlenv/defaultenv.hh"
|
||||
#include "tgba/tgbaexplicit.hh"
|
||||
#include "tgbaalgos/dotty.hh"
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
spot::ltl::default_environment& e =
|
||||
spot::ltl::default_environment::instance();
|
||||
spot::tgba_explicit a;
|
||||
|
||||
typedef spot::tgba_explicit::transition trans;
|
||||
|
||||
trans* t1 = a.create_transition("state 0", "state 1");
|
||||
trans* t2 = a.create_transition("state 1", "state 2");
|
||||
trans* t3 = a.create_transition("state 2", "state 0");
|
||||
a.add_condition(t2, e.require("a"));
|
||||
a.add_condition(t3, e.require("b"));
|
||||
a.add_condition(t3, e.require("c"));
|
||||
a.add_promise(t1, e.require("p"));
|
||||
a.add_promise(t1, e.require("q"));
|
||||
a.add_promise(t2, e.require("r"));
|
||||
|
||||
spot::dotty_reachable(std::cout, a);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue