are_isomorphic: return the mapping found, not just true or false

* src/bin/autfilt.cc: Here.
* src/tgbaalgos/are_isomorphic.cc, src/tgbaalgos/are_isomorphic.hh:
Here.
This commit is contained in:
Thibaud Michaud 2014-12-08 21:42:27 +01:00 committed by Alexandre Duret-Lutz
parent 97fdea9d71
commit 1b9354c9b5
3 changed files with 17 additions and 17 deletions

View file

@ -415,12 +415,16 @@ namespace
// Do this first, because it is cheap and will help most
// algorithms.
if (opt_merge)
aut->merge_transitions();
{
aut->merge_transitions();
if (opt_are_isomorphic)
opt_are_isomorphic->merge_transitions();
}
if (opt_product)
aut = spot::product(std::move(aut), opt_product);
if (opt_isomorph && !are_isomorphic(aut, opt_isomorph))
if (opt_isomorph && are_isomorphic(aut, opt_isomorph).empty())
return 0;
aut = post.run(aut, nullptr);