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

* iface/gspn/ (tgba_gspn::format_state): Call gspn's

parent 4c40d592
2003-07-30 Alexandre Duret-Lutz <>
* iface/gspn/ (tgba_gspn::format_state): Call gspn's
* iface/gspn/dcswaveltl.test: Check for a false formula too.
* iface/gspn/dcswaveltl.test, iface/gspn/ New files.
* iface/gspn/ (TESTS): Add dcswaveltl.test.
(ltlgspn_rg_LDADD, ltlgspn_srg_LDADD, ltlgspn_rg_SOURCES)
......@@ -387,9 +387,29 @@ namespace spot
const state_gspn* s = dynamic_cast<const state_gspn*>(state);
// FIXME: We ought to ask GSPN to format the state.
std::ostringstream os;
os << s->get_state();
char* str;
int err = print_state(s->get_state(), &str);
if (err)
throw gspn_exeption("print_state()", err);
// Rewrite all new lines as \\\n.
const char* pos = str;
while (*pos)
switch (*pos)
// Rewrite all new lines as \\n, and strip the last one.
case '\n':
if (pos[1])
os << "\\n";
os << *pos;
return os.str();
Supports Markdown
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