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:
parent
db124d02c0
commit
c8140de9d6
3 changed files with 22 additions and 2 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue