scc_has_rejecting_cycle: rewrite without copy
* spot/twaalgos/genem.hh, spot/twaalgos/genem.cc (generic_emptiness_check_for_scc): Add a version that takes an acc. * spot/twaalgos/isweakscc.cc (scc_has_rejecting_cycle): Use generic_emptiness_check_for_scc.
This commit is contained in:
parent
c830b5db25
commit
030ebed367
3 changed files with 25 additions and 17 deletions
|
|
@ -40,4 +40,13 @@ namespace spot
|
|||
/// \brief Emptiness check of one SCC, for any acceptance condition.
|
||||
SPOT_API bool
|
||||
generic_emptiness_check_for_scc(const scc_info& si, unsigned scc);
|
||||
|
||||
/// \ingroup emptiness_check_algorithms
|
||||
/// \brief Emptiness check of one SCC, for any acceptance condition.
|
||||
///
|
||||
/// This version makes it possible to ignore the acceptance
|
||||
/// condition of the automaton, and use \a forced_acc.
|
||||
SPOT_API bool
|
||||
generic_emptiness_check_for_scc(const scc_info& si, unsigned scc,
|
||||
const acc_cond& forced_acc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue