* src/tgba/tgbatba.cc (tgba_tba_proxy::format_state): Use

bdd_format_accset to print the acceptance condition part of the state.
That produces more readable output.
This commit is contained in:
Alexandre Duret-Lutz 2004-06-23 08:51:32 +00:00
parent bd69b16e46
commit 3802528bfd
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2004-06-23 Alexandre Duret-Lutz <adl@gnu.org> 2004-06-23 Alexandre Duret-Lutz <adl@gnu.org>
* src/tgba/tgbatba.cc (tgba_tba_proxy::format_state): Use
bdd_format_accset to print the acceptance condition part of the state.
That produces more readable output.
* wrap/python/cgi/ltl2tgba.in: Add "Formula Simplications" options. * wrap/python/cgi/ltl2tgba.in: Add "Formula Simplications" options.
* wrap/python/spot.i: Wrap src/ltlvisite/reduce.hh. * wrap/python/spot.i: Wrap src/ltlvisite/reduce.hh.

View file

@ -258,8 +258,10 @@ namespace spot
{ {
const state_tba_proxy* s = dynamic_cast<const state_tba_proxy*>(state); const state_tba_proxy* s = dynamic_cast<const state_tba_proxy*>(state);
assert(s); assert(s);
return a_->format_state(s->real_state()) + "(" std::string a = bdd_format_accset(get_dict(), s->acceptance_cond());
+ bdd_format_set(get_dict(), s->acceptance_cond()) + ")"; if (a != "")
a = " " + a;
return a_->format_state(s->real_state()) + a;
} }
state* state*