spot: small factorisations, improvements and typos
* spot/tl/hierarchy.cc: Factorisations, improvements. * spot/twaalgos/totgba.cc: Typos.
This commit is contained in:
parent
2c059a1099
commit
1b4002401a
2 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue