Commit f006f0df authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* src/twaalgos/isunamb.cc: Simplify.

parent 8c32fba8
......@@ -20,7 +20,6 @@
#include "isunamb.hh"
#include "twaalgos/product.hh"
#include "sccfilter.hh"
#include "stats.hh"
#include <set>
#include <list>
......@@ -33,9 +32,8 @@ namespace spot
auto clean_a = scc_filter_states(aut);
auto prod = product(clean_a, clean_a);
auto clean_p = scc_filter_states(prod);
tgba_statistics sa = stats_reachable(clean_a);
tgba_statistics sp = stats_reachable(clean_p);
return sa.states == sp.states && sa.transitions == sp.transitions;
return clean_a->num_states() == clean_p->num_states()
&& clean_a->num_transitions() == clean_p->num_transitions();
}
bool check_unambiguous(const twa_graph_ptr& aut)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment