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

* src/ltlvisit/dotty.hh (dotty): Move the ostream argument first.

* src/ltlvisit/dump.hh (dump): Likewise.
* src/ltltest/equals.cc, src/ltltest/readltl.cc,
src/ltlvisit/dotty.cc, src/ltlvisit/dump.cc: Adjust.
parent a5e04a10
2003-08-06 Alexandre Duret-Lutz <adl@gnu.org>
* src/ltlvisit/dotty.hh (dotty): Move the ostream argument first.
* src/ltlvisit/dump.hh (dump): Likewise.
* src/ltltest/equals.cc, src/ltltest/readltl.cc,
src/ltlvisit/dotty.cc, src/ltlvisit/dump.cc: Adjust.
2003-08-05 Alexandre Duret-Lutz <aduret@src.lip6.fr>
* src/misc/version.hh, src/misc/version.cc: New files.
......
......@@ -41,21 +41,21 @@ main(int argc, char** argv)
tmp = f1;
f1 = spot::ltl::unabbreviate_logic(f1);
spot::ltl::destroy(tmp);
spot::ltl::dump(f1, std::cout);
spot::ltl::dump(std::cout, f1);
std::cout << std::endl;
#endif
#ifdef TUNABBREV
tmp = f1;
f1 = spot::ltl::unabbreviate_ltl(f1);
spot::ltl::destroy(tmp);
spot::ltl::dump(f1, std::cout);
spot::ltl::dump(std::cout, f1);
std::cout << std::endl;
#endif
#ifdef NENOFORM
tmp = f1;
f1 = spot::ltl::negative_normal_form(f1);
spot::ltl::destroy(tmp);
spot::ltl::dump(f1, std::cout);
spot::ltl::dump(std::cout, f1);
std::cout << std::endl;
#endif
......
......@@ -43,9 +43,9 @@ main(int argc, char** argv)
if (f)
{
#ifdef DOTTY
spot::ltl::dotty(f, std::cout);
spot::ltl::dotty(std::cout, f);
#else
spot::ltl::dump(f, std::cout);
spot::ltl::dump(std::cout, f);
std::cout << std::endl;
#endif
spot::ltl::destroy(f);
......
......@@ -101,7 +101,7 @@ namespace spot
};
std::ostream&
dotty(const formula* f, std::ostream& os)
dotty(std::ostream& os, const formula* f)
{
dotty_visitor::map m;
dotty_visitor v(os, m);
......
......@@ -9,12 +9,12 @@ namespace spot
namespace ltl
{
/// \brief Write a formula tree using dot's syntax.
/// \param f The formula to translate.
/// \param os The stream where it should be output.
/// \param f The formula to translate.
///
/// \c dot is part of the GraphViz package
/// http://www.research.att.com/sw/tools/graphviz/
std::ostream& dotty(const formula* f, std::ostream& os);
std::ostream& dotty(std::ostream& os, const formula* f);
}
}
......
......@@ -69,7 +69,7 @@ namespace spot
};
std::ostream&
dump(const formula* f, std::ostream& os)
dump(std::ostream& os, const formula* f)
{
dump_visitor v(os);
f->accept(v);
......
......@@ -9,11 +9,11 @@ namespace spot
namespace ltl
{
/// \brief Dump a formula tree.
/// \param f The formula to dump.
/// \param os The stream where it should be output.
/// \param f The formula to dump.
///
/// This is useful to display a formula when debugging.
std::ostream& dump(const formula* f, std::ostream& os);
std::ostream& dump(std::ostream& os, const formula* f);
}
}
......
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