Fix escaping of state name in save_reachable()'s output.
* src/tgbaalgos/save.c (process_state): Escape quotes in the name of source and destination states. This fixes a side bug in the upcoming degenid.test test case.
This commit is contained in:
parent
d8ba172e6d
commit
bf7b94e1cd
2 changed files with 12 additions and 3 deletions
|
|
@ -1,3 +1,11 @@
|
||||||
|
2011-08-25 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
|
Fix escaping of state name in save_reachable()'s output.
|
||||||
|
|
||||||
|
* src/tgbaalgos/save.c (process_state): Escape quotes in the
|
||||||
|
name of source and destination states. This fixes a side bug
|
||||||
|
in the upcoming degenid.test test case.
|
||||||
|
|
||||||
2011-08-25 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
2011-08-25 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
Running `ltl2tgba -R1q -R1t -N` would degeneralize before and
|
Running `ltl2tgba -R1q -R1t -N` would degeneralize before and
|
||||||
|
|
|
||||||
|
|
@ -52,12 +52,13 @@ namespace spot
|
||||||
process_state(const state* s, int, tgba_succ_iterator* si)
|
process_state(const state* s, int, tgba_succ_iterator* si)
|
||||||
{
|
{
|
||||||
const bdd_dict* d = automata_->get_dict();
|
const bdd_dict* d = automata_->get_dict();
|
||||||
std::string cur = automata_->format_state(s);
|
std::string cur = escape_str(automata_->format_state(s));
|
||||||
for (si->first(); !si->done(); si->next())
|
for (si->first(); !si->done(); si->next())
|
||||||
{
|
{
|
||||||
state* dest = si->current_state();
|
state* dest = si->current_state();
|
||||||
os_ << "\"" << cur << "\", \""
|
os_ << "\"" << cur << "\", \"";
|
||||||
<< automata_->format_state(dest) << "\", \"";
|
escape_str(os_, automata_->format_state(dest));
|
||||||
|
os_ << "\", \"";
|
||||||
escape_str(os_, bdd_format_formula(d, si->current_condition()));
|
escape_str(os_, bdd_format_formula(d, si->current_condition()));
|
||||||
os_ << "\",";
|
os_ << "\",";
|
||||||
print_acc(si->current_acceptance_conditions()) << ";" << std::endl;
|
print_acc(si->current_acceptance_conditions()) << ";" << std::endl;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue