Deprecate reduce() in favor of ltl_simplifier.
* src/ltlvisit/reduce.hh: Mark the file as obsolete. (reduce): Declare this function as obsolete. * src/ltlvisit/reduce.cc: Define SKIP_DEPRECATED_WARNING so we can include reduce.hh. * src/sanity/includes.test: Also use SKIP_DEPRECATED_WARNING when compiling headers. * iface/dve2/dve2check.cc, src/ltltest/equals.cc, src/ltltest/randltl.cc, src/ltltest/reduc.cc, src/tgbaalgos/ltl2tgba_fm.hh, src/tgbaalgos/ltl2tgba_fm.cc, src/tgbatest/randtgba.cc, wrap/python/ajax/spot.in, wrap/python/spot.i: Adjust to use ltl_simplifier. * src/tgbatest/ltl2tgba.cc: Adjust to use ltl_simplifier, and replace -fr1...-fr7 options by a single -fr option. * src/tgbatest/spotlbtt.test: Adjust -fr flags accordingly. * src/tgbatest/reductgba.cc: Do not include reduce.hh.
This commit is contained in:
parent
c0085a8f30
commit
67f4e8b5ce
15 changed files with 367 additions and 166 deletions
|
|
@ -21,9 +21,10 @@
|
|||
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
// 02111-1307, USA.
|
||||
|
||||
#include "reduce.hh"
|
||||
#include <cassert>
|
||||
#include "simplify.hh"
|
||||
#define SKIP_DEPRECATED_WARNING
|
||||
#include "reduce.hh"
|
||||
|
||||
namespace spot
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,6 +27,13 @@
|
|||
#include "ltlast/formula.hh"
|
||||
#include "ltlast/visitor.hh"
|
||||
|
||||
#if __GNUC__
|
||||
#ifndef SKIP_DEPRECATED_WARNING
|
||||
#warning This file and its functions are deprecated. \
|
||||
The functionality moved to ltlvisit/simplify.hh
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace spot
|
||||
{
|
||||
namespace ltl
|
||||
|
|
@ -60,7 +67,14 @@ namespace spot
|
|||
/// \param opt a conjonction of spot::ltl::reduce_options specifying
|
||||
/// which optimizations to apply.
|
||||
/// \return the reduced formula
|
||||
///
|
||||
/// \deprecated Use spot::ltl::ltl_simplifier instead.
|
||||
#if __GNUC__
|
||||
formula*
|
||||
reduce(const formula* f, int opt = Reduce_All) __attribute__ ((deprecated));
|
||||
#else
|
||||
formula* reduce(const formula* f, int opt = Reduce_All);
|
||||
#endif
|
||||
/// @}
|
||||
|
||||
/// \brief Check whether a formula is a pure eventuality.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue