// exp_equiv.cc: this file is part of the Vaucanson project.
// 
// Vaucanson, a generic library for finite state machines.
// 
// Copyright (C) 2005 The Vaucanson Group.
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// The complete GNU General Public Licence Notice can be found as the
// `COPYING' file in the root directory.
// 
// The Vaucanson Group consists of people listed in the `AUTHORS' file.
//
#include "equivalent_functions.hh"

int
main(int argc, char** argv)
{
  if (argc != 3)
    {
      std::cerr << "Usage: " << argv[0] << " <exp> <exp>" << std::endl;
      return 1;
    }

  if (are_equivalent(standard_of(get_exp(argv[2])), standard_of(get_exp(argv[1]))))
    {
      std::cout << "The expression \"" << argv[2]
		<< "\" is equivalent to the automaton " << argv[1]
		<< "." << std::endl;
      return 0;
    }
  std::cout << "The expression \"" << argv[2]
	    << "\" is NOT equivalent to the automaton " << argv[1]
	    << "." << std::endl;
  return 1;
}

