Commit 1b400240 authored by Alexandre GBAGUIDI AISSE's avatar Alexandre GBAGUIDI AISSE
Browse files

spot: small factorisations, improvements and typos

* spot/tl/hierarchy.cc: Factorisations, improvements.
* spot/twaalgos/totgba.cc:  Typos.
parent 2c059a10
......@@ -41,9 +41,9 @@ namespace spot
twa_graph_ptr cobuchi = nullptr;
std::vector<acc_cond::rs_pair> pairs;
if (aut->acc().is_streett_like(pairs) || aut->acc().is_parity())
cobuchi = nsa_to_dca(aut, false);
cobuchi = nsa_to_nca(aut, false);
else if (aut->get_acceptance().is_dnf())
cobuchi = dnf_to_dca(aut, false);
cobuchi = dnf_to_nca(aut, false);
else
throw std::runtime_error("cobuchi_realizable() only works with "
"Streett-like, Parity or any "
......@@ -107,7 +107,7 @@ namespace spot
{
if (aut_given && !is_persistence)
return prcheck::via_Rabin;
else if ((aut_given && is_persistence) || !aut_given)
else if (is_persistence || !aut_given)
return prcheck::via_CoBuchi;
else
SPOT_UNREACHABLE();
......
......@@ -84,7 +84,6 @@ namespace spot
if (code[s].sub.op == acc_cond::acc_op::And
|| ((one_conjunction = root_op == acc_cond::acc_op::And)))
{
debug << "WABA" << std::endl;
s = one_conjunction ? s + 1 : s;
const unsigned short size = code[s].sub.size;
acc_cond::mark_t fin = 0u;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment