work around issue #317

* spot/twaalgos/cobuchi.cc: Call sbacc() on transition-based input.
* tests/Makefile.am: Remove XFAIL_TESTS.
* NEWS: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2018-01-14 22:18:55 +01:00
parent 61b0a542f1
commit c920825fad
3 changed files with 19 additions and 5 deletions

View file

@ -31,6 +31,7 @@
#include <spot/twaalgos/totgba.hh>
#include <spot/twaalgos/isdet.hh>
#include <spot/twaalgos/strength.hh>
#include <spot/twaalgos/sbacc.hh> // For issue #317
#include <stack>
#include <unordered_map>
@ -274,6 +275,11 @@ namespace spot
throw std::runtime_error("dnf_to_nca() only works with DNF acceptance "
"condition");
// FIXME: At the moment this algorithm does not support
// transition-based acceptance. See issue #317. Once that is
// fixed we may remove the next line.
ref = sbacc(std::const_pointer_cast<twa_graph>(ref));
auto streett_aut = spot::dnf_to_streett(ref, true);
std::vector<acc_cond::rs_pair> pairs;
@ -609,6 +615,11 @@ namespace spot
throw std::runtime_error("nsa_to_dca() only works with Streett-like or "
"Parity acceptance condition");
// FIXME: At the moment this algorithm does not support
// transition-based acceptance. See issue #317. Once that is
// fixed we may remove the next line.
aut = sbacc(std::const_pointer_cast<twa_graph>(aut));
// Get states that must be visited infinitely often in NCA.
vect_nca_info nca_info;
nsa_to_nca(aut, named_states, &nca_info);
@ -635,6 +646,11 @@ namespace spot
throw std::runtime_error("dnf_to_dca() only works with DNF (Rabin-like "
"included) acceptance condition");
// FIXME: At the moment this algorithm does not support
// transition-based acceptance. See issue #317. Once that is
// fixed we may remove the next line.
aut = sbacc(std::const_pointer_cast<twa_graph>(aut));
// Get states that must be visited infinitely often in NCA.
vect_nca_info nca_info;
dnf_to_nca(aut, false, &nca_info);