complement: fix handling of output_aborter with postproc

Reported by Salomon Sickert.

* spot/twaalgos/complement.cc: Make sure the output of postproc
is deterministic.
* tests/core/ltlcross.test: Add test case.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2019-07-11 14:48:50 +02:00
parent 1f8a777e1f
commit e2fad2d7ae
3 changed files with 15 additions and 3 deletions

View file

@ -534,7 +534,7 @@ namespace spot
p.set_pref(spot::postprocessor::Deterministic);
p.set_level(spot::postprocessor::Low);
auto det = p.run(std::const_pointer_cast<twa_graph>(aut));
if (!det)
if (!det || !is_universal(det))
return nullptr;
return dualize(det);
}