Skip to content
GitLab
Menu
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
2f7d46d7
Commit
2f7d46d7
authored
Jan 30, 2004
by
Alexandre Duret-Lutz
Browse files
* src/ltlvisit/tostring.cc: Fix output of F0, F1, G0, G1, X0, and X1.
* src/ltltest/tostring.test: Test these.
parent
1d72cdc8
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
2f7d46d7
2004-01-30 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/ltlvisit/tostring.cc: Fix output of F0, F1, G0, G1, X0, and X1.
* src/ltltest/tostring.test: Test these.
2004-01-29 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/tgba/tgbaexplicit.cc (tgba_explicit::get_acceptance_condition):
...
...
src/ltltest/tostring.test
View file @
2f7d46d7
...
...
@@ -43,3 +43,5 @@ run 0 ./tostring 'a <=> b'
run
0
.
/
tostring
'a & b & (c |(f U g)| e)'
run
0
.
/
tostring
'b & a & a & (c | e |(g U g)| e | c) & b'
run
0
.
/
tostring
'F"F1"&G"G"&X"X"'
run
0
.
/
tostring
'GFfalse'
run
0
.
/
tostring
'GFtrue'
src/ltlvisit/tostring.cc
View file @
2f7d46d7
...
...
@@ -96,10 +96,14 @@ namespace spot
void
visit
(
const
unop
*
uo
)
{
// The parser treats F0, F1, G0, G1, X0, and X1 as atomic
// propositions. So make sure we output F(0), G(1), etc.
bool
need_parent
=
!!
dynamic_cast
<
const
constant
*>
(
uo
->
child
());
switch
(
uo
->
op
())
{
case
unop
::
Not
:
os_
<<
"!"
;
need_parent
=
false
;
break
;
case
unop
::
X
:
os_
<<
"X"
;
...
...
@@ -112,7 +116,11 @@ namespace spot
break
;
}
if
(
need_parent
)
os_
<<
"("
;
uo
->
child
()
->
accept
(
*
this
);
if
(
need_parent
)
os_
<<
")"
;
}
void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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