ltl: remove the useless Finish operator
* src/ltlast/unop.cc, src/ltlast/unop.hh src/ltlvisit/lbt.cc, src/ltlvisit/mark.cc, src/ltlvisit/simplify.cc, src/ltlvisit/tostring.cc, src/ltlvisit/tunabbrev.cc, src/tgba/formula2bdd.cc, src/tgbaalgos/ltl2tgba_fm.cc: Remove Finish. * src/tgbaalgos/ltl2taa.cc: Remove Finish, and simply use an empty destination to code the sink.
This commit is contained in:
parent
ad77145496
commit
a0d9268fda
10 changed files with 10 additions and 64 deletions
|
|
@ -160,7 +160,6 @@ namespace spot
|
|||
case unop::G:
|
||||
os_ << 'G';
|
||||
break;
|
||||
case unop::Finish:
|
||||
case unop::Closure:
|
||||
case unop::NegClosure:
|
||||
case unop::NegClosureMarked:
|
||||
|
|
|
|||
|
|
@ -142,7 +142,6 @@ namespace spot
|
|||
case unop::X:
|
||||
case unop::F:
|
||||
case unop::G:
|
||||
case unop::Finish:
|
||||
case unop::Closure:
|
||||
res->push_back(recurse(f));
|
||||
break;
|
||||
|
|
@ -236,7 +235,6 @@ namespace spot
|
|||
case unop::X:
|
||||
case unop::F:
|
||||
case unop::G:
|
||||
case unop::Finish:
|
||||
case unop::Closure:
|
||||
case unop::NegClosureMarked:
|
||||
result_ = uo->clone();
|
||||
|
|
|
|||
|
|
@ -516,12 +516,6 @@ namespace spot
|
|||
unop::Closure : op,
|
||||
recurse_(f, false));
|
||||
return;
|
||||
/* !Finish(x), is not simplified */
|
||||
case unop::Finish:
|
||||
result_ = unop::instance(uo->op(), recurse_(f, false));
|
||||
if (negated_)
|
||||
result_ = unop::instance(unop::Not, result_);
|
||||
return;
|
||||
}
|
||||
SPOT_UNREACHABLE();
|
||||
}
|
||||
|
|
@ -1737,9 +1731,6 @@ namespace spot
|
|||
}
|
||||
}
|
||||
break;
|
||||
case unop::Finish:
|
||||
// No simplification
|
||||
break;
|
||||
}
|
||||
result_ = unop::instance(op, result_);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -712,10 +712,6 @@ namespace spot
|
|||
case unop::G:
|
||||
emit(KG);
|
||||
break;
|
||||
case unop::Finish:
|
||||
os_ << "finish";
|
||||
need_parent = true;
|
||||
break;
|
||||
case unop::Closure:
|
||||
os_ << '{';
|
||||
in_ratexp_ = true;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
// Copyright (C) 2009, 2010, 2012 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2009, 2010, 2012, 2014 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
// Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// et Marie Curie.
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -39,7 +40,6 @@ namespace spot
|
|||
{
|
||||
switch (uo->op())
|
||||
{
|
||||
case unop::Finish:
|
||||
case unop::X:
|
||||
case unop::Not:
|
||||
case unop::Closure:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue