Report formulas that are both safety and guarantee.

* src/tgbatest/ltl2tgba.cc (-O): Report formulas that are both
safety and guarantee.
* src/tgbatest/obligation.test: Add cases.
This commit is contained in:
Alexandre Duret-Lutz 2011-01-27 21:41:04 +01:00
parent db124d02c0
commit c8140de9d6
3 changed files with 22 additions and 2 deletions

View file

@ -1152,16 +1152,23 @@ main(int argc, char** argv)
}
else
{
if (is_guarantee_automaton(minimized))
bool g = is_guarantee_automaton(minimized);
bool s = is_safety_mwdba(minimized);
if (g && !s)
{
std::cout << "this is a guarantee property (hence, "
<< "an obligation property)";
}
else if (is_safety_mwdba(minimized))
else if (s && !g)
{
std::cout << "this is a safety property (hence, "
<< "an obligation property)";
}
else if (s && g)
{
std::cout << "this is a guarantee and a safety property"
<< " (and of course an obligation property)";
}
else
{
std::cout << "this is an obligation property that is "