* src/tgbatest/ltl2tgba.cc: Add option -t to output the LBTT automata.

* src/tgbaalgos/lbtt.cc, src/tgbaalgos/lbtt.hh: New files.
* src/tgbaalgos/Makefile.am (tgbaalgos_HEADERS): Add lbtt.hh.
(libtgbaalgos_la_SOURCES): Add lbtt.cc.
* src/tgba/bddprint.cc (print_sat_handler): Put a space after "!".
* src/tgbatest/readsave.test: Adjust spaces after "!".
This commit is contained in:
Alexandre Duret-Lutz 2003-07-08 15:45:11 +00:00
parent a307c0d0ae
commit f9c8eb1cb7
7 changed files with 272 additions and 3 deletions

View file

@ -7,6 +7,7 @@
#include "tgba/bddprint.hh"
#include "tgba/tgbabddtranslatefactory.hh"
#include "tgbaalgos/dotty.hh"
#include "tgbaalgos/lbtt.hh"
void
syntax(char* prog)
@ -19,10 +20,10 @@ syntax(char* prog)
<< " -A same as -a, but as a set" << std::endl
<< " -d turn on traces during parsing" << std::endl
<< " -o re-order BDD variables in the automata" << std::endl
<< std::endl
<< " -r display the relation BDD, not the reachability graph"
<< std::endl
<< " -R same as -r, but as a set" << std::endl
<< " -t display reachable states in LBTT's format" << std::endl
<< " -v display the BDD variables used by the automaton"
<< std::endl;
exit(2);
@ -69,6 +70,10 @@ main(int argc, char** argv)
{
output = 3;
}
else if (!strcmp(argv[formula_index], "-t"))
{
output = 6;
}
else if (!strcmp(argv[formula_index], "-v"))
{
output = 5;
@ -118,6 +123,9 @@ main(int argc, char** argv)
case 5:
a.get_dict().dump(std::cout);
break;
case 6:
spot::lbtt_reachable(std::cout, a);
break;
default:
assert(!"unknown output option");
}

View file

@ -15,7 +15,7 @@ EOF
cat >expected <<EOF
acc = "c" "d";
"s1", "s2", a !b, "c" "d";
"s1", "s2", a ! b, "c" "d";
"s2", "state 3", a, "c";
"state 3", "s1", ,;
EOF