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
c0b59d07
Commit
c0b59d07
authored
May 26, 2004
by
Alexandre Duret-Lutz
Browse files
* src/ltlvisit/reducform.cc (reduce_form_visitor::visit(constant)):
Simplify.
parent
cdbb199c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c0b59d07
2004-05-26 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/ltlvisit/reducform.cc (reduce_form_visitor::visit(constant)):
Simplify.
* src/ltlvisit/basereduc.cc, src/ltlvisit/reducform.cc: Use
dynamic_cast instead of node_type_form_visitor, this is usually
smaller.
...
...
src/ltlvisit/basereduc.cc
View file @
c0b59d07
...
...
@@ -53,15 +53,7 @@ namespace spot
void
visit
(
constant
*
c
)
{
switch
(
c
->
val
())
{
case
constant
::
True
:
result_
=
constant
::
true_instance
();
return
;
case
constant
::
False
:
result_
=
constant
::
false_instance
();
return
;
}
result_
=
c
;
}
void
...
...
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