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:
parent
97fdea9d71
commit
1b9354c9b5
3 changed files with 17 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue