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
7021e45f
Commit
7021e45f
authored
Apr 15, 2010
by
Alexandre Duret-Lutz
Browse files
Fix simplification of "a M true" as Fa.
* src/ltlvisit/simpfg.cc: Typo. * src/ltltest/reduccmp.test: Add more tests.
parent
9a1769fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
7021e45f
2010-04-15 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix simplification of "a M true" as Fa.
* src/ltlvisit/simpfg.cc: Typo.
* src/ltltest/reduccmp.test: Add more tests.
2010-04-15 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* HACKING: Bison 2.4.2 has a bugfix we rely on.
...
...
src/ltltest/reduccmp.test
View file @
7021e45f
...
...
@@ -66,6 +66,10 @@ for x in ../reduccmp ../reductaustr; do
run
0
$x
'a | (b U a) | a'
'(b U a)'
run
0
$x
'a U (b U a)'
'(b U a)'
run
0
$x
'a M 1'
'Fa'
run
0
$x
'a W 0'
'Ga'
run
0
$x
'1 U a'
'Fa'
run
0
$x
'0 R a'
'Ga'
# Basics reduction
run
0
$x
'X(true)'
'true'
...
...
src/ltlvisit/simpfg.cc
View file @
7021e45f
...
...
@@ -78,8 +78,8 @@ namespace spot
return
;
/* f1 M true == F(f1) */
case
binop
::
M
:
if
(
f
1
==
constant
::
true_instance
())
result_
=
unop
::
instance
(
unop
::
F
,
f
2
);
if
(
f
2
==
constant
::
true_instance
())
result_
=
unop
::
instance
(
unop
::
F
,
f
1
);
else
result_
=
binop
::
instance
(
binop
::
M
,
f1
,
f2
);
return
;
...
...
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