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
eccfdc6c
Commit
eccfdc6c
authored
May 17, 2004
by
Alexandre Duret-Lutz
Browse files
* src/ltlvisit/formlength.cc: Fix style to please sanity checks.
parent
cfcfb6d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
eccfdc6c
2004-05-17 Alexandre Duret-Lutz <adl@src.lip6.fr>
2004-05-17 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/ltlvisit/formlength.cc: Fix style to please sanity checks.
* src/ltlvisit/lunabbrev.cc: Fix style to please sanity checks.
* src/ltlvisit/lunabbrev.cc: Fix style to please sanity checks.
* src/tgbaalgos/neverclaim.cc: Fix them.
* src/tgbaalgos/neverclaim.cc: Fix them.
...
...
src/ltlvisit/formlength.cc
View file @
eccfdc6c
...
@@ -41,7 +41,8 @@ namespace spot
...
@@ -41,7 +41,8 @@ namespace spot
result_
=
0
;
result_
=
0
;
}
}
virtual
~
length_form_visitor
()
virtual
~
length_form_visitor
()
{
{
}
}
...
@@ -52,30 +53,26 @@ namespace spot
...
@@ -52,30 +53,26 @@ namespace spot
}
}
void
void
visit
(
const
atomic_prop
*
ap
)
visit
(
const
atomic_prop
*
)
{
{
if
(
ap
);
result_
=
1
;
result_
=
1
;
}
}
void
void
visit
(
const
constant
*
c
)
visit
(
const
constant
*
)
{
{
if
(
c
);
result_
=
1
;
result_
=
1
;
}
}
void
void
visit
(
const
unop
*
uo
)
visit
(
const
unop
*
uo
)
{
{
if
(
uo
);
result_
=
1
+
form_length
(
uo
->
child
());
result_
=
1
+
form_length
(
uo
->
child
());
}
}
void
void
visit
(
const
binop
*
bo
)
visit
(
const
binop
*
bo
)
{
{
if
(
bo
);
result_
=
1
+
form_length
(
bo
->
first
())
+
form_length
(
bo
->
second
());
result_
=
1
+
form_length
(
bo
->
first
())
+
form_length
(
bo
->
second
());
}
}
...
...
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