Commit bf7b94e1 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

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.
parent d8ba172e
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>
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)
{
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())
{
state* dest = si->current_state();
os_ << "\"" << cur << "\", \""
<< automata_->format_state(dest) << "\", \"";
os_ << "\"" << cur << "\", \"";
escape_str(os_, automata_->format_state(dest));
os_ << "\", \"";
escape_str(os_, bdd_format_formula(d, si->current_condition()));
os_ << "\",";
print_acc(si->current_acceptance_conditions()) << ";" << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment