* src/ltlvisit/simpfg.cc, src/ltlvisit/simpfg.hh: New files,
extracted from ... * src/ltlvisit/lunabbrev.cc: ... this one, which now work as documented again. * src/ltlvisit/reduce.cc, src/ltlvisit/syntimpl.cc: Adjust to call simplify_f_g() in addition to unabbreviate_logic(). * src/ltlvisit/Makefile.am (ltlvisit_HEADERS, libltlvisit_la_SOURCES): Add simpfg.cc and simpfg.hh.
This commit is contained in:
parent
839837a69e
commit
b42cdc0d8f
7 changed files with 181 additions and 36 deletions
|
|
@ -71,19 +71,11 @@ namespace spot
|
|||
unop::instance(unop::Not,
|
||||
f2)));
|
||||
return;
|
||||
/* true U f2 == F(f2) */
|
||||
case binop::U:
|
||||
if (f1 == constant::true_instance())
|
||||
result_ = unop::instance(unop::F, f2);
|
||||
else
|
||||
result_ = binop::instance(bo->op(), f1, f2);
|
||||
return;
|
||||
/* false R f2 == G(f2) */
|
||||
/* f1 U f2 == f1 U f2 */
|
||||
/* f1 R f2 == f1 R f2 */
|
||||
case binop::U:
|
||||
case binop::R:
|
||||
if (f1 == constant::false_instance())
|
||||
result_ = unop::instance(unop::G, f2);
|
||||
else
|
||||
result_ = binop::instance(bo->op(), f1, f2);
|
||||
result_ = binop::instance(bo->op(), f1, f2);
|
||||
return;
|
||||
}
|
||||
/* Unreachable code. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue