Commit ad93f875 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Fixup minimize_monitor().

* src/tgbaalgos/minimize.cc (minimize_monitor): Fix typo yielding
incorrect monitor if the input tgba is not deterministic.
* src/tgbatest/ltl2tgba.test: Add test case.
parent dd0f01fe
2011-01-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fixup minimize_monitor().
* src/tgbaalgos/minimize.cc (minimize_monitor): Fix typo yielding
incorrect monitor if the input tgba is not deterministic.
* src/tgbatest/ltl2tgba.test: Add test case.
2011-01-27 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Report formulas that are both safety and guarantee.
......
......@@ -504,7 +504,7 @@ namespace spot
// non_final contain all states.
// final is empty: there is no acceptance condition
state_set(a, non_final);
state_set(det_a, non_final);
return minimize_dfa(det_a, final, non_final);
}
......
......@@ -104,3 +104,11 @@ grep 'states: 5$' stdout
../ltl2tgba -ks -Rm -f "$f" > stdout
grep 'transitions: 0$' stdout
grep 'states: 1$' stdout
# Make sure a monitor for F(a & F(b)) accepts everything.
run 0 ../ltl2tgba -ks -f "$f" | grep ' ->' > stdout
cat >expected <<EOF
0 -> 1
1 -> 1 [label="1\n"]
EOF
cmp stdout expected
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment