ltlcross: fix cross-checks for automata using Fin acceptance

Fixes #420 reported by Salomon Sickert.

* bin/ltlcross.cc: Call determine_unknown_acceptance().
* spot/twaalgos/sccinfo.cc, spot/twaalgos/sccinfo.hh: Document
that one_accepting_scc()==-1 can mean "don't know", and update
determine_unknown_acceptance() to set one_acc_scc_.
* tests/core/ltlcross3.test: Add test case.
* NEWS: Mention the fixes.
This commit is contained in:
Alexandre Duret-Lutz 2020-07-20 12:10:20 +02:00
parent c7774ebb55
commit ac5a261aa5
5 changed files with 30 additions and 4 deletions

View file

@ -1568,6 +1568,7 @@ namespace
sm = new
spot::scc_info(p,
spot::scc_info_options::TRACK_STATES);
sm->determine_unknown_acceptance();
}
catch (const std::bad_alloc&)
{