dtwa_complement: deprecated, use dualize() instead.
* NEWS: Mention of the deprecation * bench/stutter/stutter_invariance_randomgraph.cc, bin/autfilt.cc, bin/ltlcross.cc, spot/twaalgos/langmap.cc, spot/twaalgos/minimize.cc, spot/twaalgos/powerset.cc, spot/twaalgos/stutter.cc, tests/core/ikwiad.cc, tests/python/bugdet.py, tests/python/remfin.py, tests/python/sum.py: Refactor calls to dtwa_complement() with calls to dualize(). * doc/org/upgrade2.org: Change mention of dtwa_complement with dualize. * spot/twaalgos/complement.hh: Add deprecation notice. * python/spot/impl.i: Add deprecation notice for the python bindings.
This commit is contained in:
parent
073a6e8198
commit
152b5d0d30
15 changed files with 47 additions and 28 deletions
|
|
@ -36,6 +36,11 @@ namespace spot
|
|||
/// Functions like to_generalized_buchi() or remove_fin() are
|
||||
/// frequently called after dtwa_complement() to obtain an easier
|
||||
/// acceptance condition (maybe at the cost of losing determinism.)
|
||||
///
|
||||
/// This function was deprecated in spot 2.4. Call the function
|
||||
/// spot::dualize() instead, that is able to complement any input
|
||||
/// automaton, not only deterministic ones.
|
||||
SPOT_DEPRECATED("use spot::dualize() instead")
|
||||
SPOT_API twa_graph_ptr
|
||||
dtwa_complement(const const_twa_graph_ptr& aut);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
#include <numeric>
|
||||
#include <spot/twa/twa.hh>
|
||||
#include <spot/twaalgos/complement.hh>
|
||||
#include <spot/twaalgos/copy.hh>
|
||||
#include <spot/twaalgos/dualize.hh>
|
||||
#include <spot/twaalgos/isdet.hh>
|
||||
#include <spot/twaalgos/langmap.hh>
|
||||
#include <spot/twaalgos/remfin.hh>
|
||||
|
|
@ -49,7 +49,7 @@ namespace spot
|
|||
alt_init_st_auts[i] = c;
|
||||
|
||||
twa_graph_ptr cc =
|
||||
remove_fin(dtwa_complement(copy(c, twa::prop_set::all())));
|
||||
remove_fin(dualize(copy(c, twa::prop_set::all())));
|
||||
compl_alt_init_st_auts[i] = cc;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
#include <spot/twaalgos/ltl2tgba_fm.hh>
|
||||
#include <spot/twaalgos/bfssteps.hh>
|
||||
#include <spot/twaalgos/isdet.hh>
|
||||
#include <spot/twaalgos/complement.hh>
|
||||
#include <spot/twaalgos/dualize.hh>
|
||||
#include <spot/twaalgos/remfin.hh>
|
||||
|
||||
namespace spot
|
||||
|
|
@ -661,7 +661,7 @@ namespace spot
|
|||
{
|
||||
// If the automaton is deterministic, complementing is
|
||||
// easy.
|
||||
aut_neg_f = remove_fin(dtwa_complement(aut_f));
|
||||
aut_neg_f = remove_fin(dualize(aut_f));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -681,7 +681,7 @@ namespace spot
|
|||
{
|
||||
// Complement the minimized WDBA.
|
||||
assert((bool)min_aut_f->prop_weak());
|
||||
auto neg_min_aut_f = remove_fin(dtwa_complement(min_aut_f));
|
||||
auto neg_min_aut_f = remove_fin(dualize(min_aut_f));
|
||||
if (product(aut_f, neg_min_aut_f)->is_empty())
|
||||
// Finally, we are now sure that it was safe
|
||||
// to minimize the automaton.
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
#include <spot/twaalgos/gtec/gtec.hh>
|
||||
#include <spot/twaalgos/sccfilter.hh>
|
||||
#include <spot/twaalgos/ltl2tgba_fm.hh>
|
||||
#include <spot/twaalgos/complement.hh>
|
||||
#include <spot/twaalgos/dualize.hh>
|
||||
#include <spot/twaalgos/remfin.hh>
|
||||
#include <spot/misc/bitvect.hh>
|
||||
#include <spot/misc/bddlt.hh>
|
||||
|
|
@ -407,7 +407,7 @@ namespace spot
|
|||
|
||||
if (product(det, neg_aut)->is_empty())
|
||||
// Complement the DBA.
|
||||
if (product(aut, remove_fin(dtwa_complement(det)))->is_empty())
|
||||
if (product(aut, remove_fin(dualize(det)))->is_empty())
|
||||
// Finally, we are now sure that it was safe
|
||||
// to determinize the automaton.
|
||||
return det;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
#include <spot/twaalgos/product.hh>
|
||||
#include <spot/twaalgos/ltl2tgba_fm.hh>
|
||||
#include <spot/twaalgos/isdet.hh>
|
||||
#include <spot/twaalgos/complement.hh>
|
||||
#include <spot/twaalgos/dualize.hh>
|
||||
#include <spot/twaalgos/remfin.hh>
|
||||
#include <spot/twaalgos/postproc.hh>
|
||||
#include <spot/twa/twaproduct.hh>
|
||||
|
|
@ -631,7 +631,7 @@ namespace spot
|
|||
p.set_level(spot::postprocessor::Low);
|
||||
tmp = p.run(aut);
|
||||
}
|
||||
neg = dtwa_complement(tmp);
|
||||
neg = dualize(tmp);
|
||||
}
|
||||
|
||||
is_stut = is_stutter_invariant(make_twa_graph(aut, twa::prop_set::all()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue