Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
are-equivalent.cc
Go to the documentation of this file.
3 #include <vcsn/dyn/algos.hh>
4 
5 namespace vcsn
6 {
7  namespace dyn
8  {
9  REGISTER_DEFINE(are_equivalent);
10  bool
11  are_equivalent(const automaton& lhs, const automaton& rhs)
12  {
13  return detail::are_equivalent_registry().call(lhs, rhs);
14  }
15 
16  bool
17  are_equivalent(const ratexp& lhs, const ratexp& rhs)
18  {
19  return are_equivalent(standard(lhs), standard(rhs));
20  }
21 
22  REGISTER_DEFINE(difference);
23  automaton
24  difference(const automaton& lhs, const automaton& rhs)
25  {
26  return detail::difference_registry().call(lhs, rhs);
27  }
28 
29  REGISTER_DEFINE(difference_ratexp);
30  ratexp
31  difference(const ratexp& lhs, const ratexp& rhs)
32  {
33  return detail::difference_ratexp_registry().call(lhs, rhs);
34  }
35  }
36 }
bool are_equivalent(const automaton &lhs, const automaton &rhs)
Whether define the same language.
std::shared_ptr< detail::automaton_base > automaton
Definition: automaton.hh:71
automaton difference(const automaton &lhs, const automaton &rhs)
An automaton whose behavior is that of lhs on words not accepted by rhs.
std::shared_ptr< detail::ratexp_base > ratexp
Definition: fwd.hh:64
automaton standard(const automaton &a)
A standardized a.
Definition: standard.cc:38
ratexp difference_ratexp(const ratexp &lhs, const ratexp &rhs)
Bridge.