Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
e78ffdc4
Commit
e78ffdc4
authored
Jul 30, 2003
by
Alexandre Duret-Lutz
Browse files
* iface/gspn/gspn.cc (tgba_gspn::format_state): Call gspn's
print_state.
parent
4c40d592
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
e78ffdc4
2003-07-30 Alexandre Duret-Lutz <aduret@src.lip6.fr>
* iface/gspn/gspn.cc (tgba_gspn::format_state): Call gspn's
print_state.
* iface/gspn/dcswaveltl.test: Check for a false formula too.
* iface/gspn/dcswaveltl.test, iface/gspn/ltlgspn.cc: New files.
* iface/gspn/Makefile.am (TESTS): Add dcswaveltl.test.
(ltlgspn_rg_LDADD, ltlgspn_srg_LDADD, ltlgspn_rg_SOURCES)
...
...
iface/gspn/gspn.cc
View file @
e78ffdc4
...
...
@@ -387,9 +387,29 @@ namespace spot
{
const
state_gspn
*
s
=
dynamic_cast
<
const
state_gspn
*>
(
state
);
assert
(
s
);
// 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"
;
break
;
default:
os
<<
*
pos
;
}
++
pos
;
}
free
(
str
);
return
os
.
str
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment