* src/ltlvisit/dump.hh (dump): Return the passed ostream.
* src/ltlvisit/dump.cc (dump): Likewise. * src/ltlvisit/dotty.hh (dotty): Likewise. * src/ltlvisit/dotty.cc (dotty): Likewise. * src/ltlvisit/tostring.hh (to_string): Likewise. * src/ltlvisit/tostring.cc (to_string): Likewise.
This commit is contained in:
parent
7685d3a5b8
commit
e9b734f936
7 changed files with 17 additions and 7 deletions
|
|
@ -1,5 +1,12 @@
|
|||
2003-05-16 Alexandre Duret-Lutz <aduret@src.lip6.fr>
|
||||
|
||||
* src/ltlvisit/dump.hh (dump): Return the passed ostream.
|
||||
* src/ltlvisit/dump.cc (dump): Likewise.
|
||||
* src/ltlvisit/dotty.hh (dotty): Likewise.
|
||||
* src/ltlvisit/dotty.cc (dotty): Likewise.
|
||||
* src/ltlvisit/tostring.hh (to_string): Likewise.
|
||||
* src/ltlvisit/tostring.cc (to_string): Likewise.
|
||||
|
||||
* src/ltlvisit/dump.hh (dump): Take a formula* as argument,
|
||||
not a formula&. This is more homogeneous.
|
||||
* src/ltlvisit/dump.cc (dump): Likewise.
|
||||
|
|
@ -7,7 +14,7 @@
|
|||
* src/ltlvisit/dotty.cc (dotty): Likewise.
|
||||
* src/ltlvisit/tostring.hh (to_string): Likewise.
|
||||
* src/ltlvisit/tostring.cc (to_string): Likewise.
|
||||
* src/ltltest/readltl.cc, src/ltltest/equals.cc,
|
||||
* src/ltltest/readltl.cc, src/ltltest/equals.cc,
|
||||
src/ltltest/tostring.cc: Adjust usage.
|
||||
|
||||
Check trivial multop equality at build time. The makes the
|
||||
|
|
|
|||
|
|
@ -94,13 +94,14 @@ namespace spot
|
|||
|
||||
};
|
||||
|
||||
void
|
||||
std::ostream&
|
||||
dotty(const formula* f, std::ostream& os)
|
||||
{
|
||||
dotty_visitor v(os);
|
||||
os << "digraph G {" << std::endl;
|
||||
f->accept(v);
|
||||
os << "}" << std::endl;
|
||||
return os;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace spot
|
|||
///
|
||||
/// \c dot is part of the GraphViz package
|
||||
/// http://www.research.att.com/sw/tools/graphviz/
|
||||
void dotty(const formula* f, std::ostream& os);
|
||||
std::ostream& dotty(const formula* f, std::ostream& os);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,11 +68,12 @@ namespace spot
|
|||
std::ostream& os_;
|
||||
};
|
||||
|
||||
void
|
||||
std::ostream&
|
||||
dump(const formula* f, std::ostream& os)
|
||||
{
|
||||
dump_visitor v(os);
|
||||
f->accept(v);
|
||||
return os;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace spot
|
|||
/// \param os The stream where it should be output.
|
||||
///
|
||||
/// This is useful to display a formula when debugging.
|
||||
void dump(const formula* f, std::ostream& os);
|
||||
std::ostream& dump(const formula* f, std::ostream& os);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -114,11 +114,12 @@ namespace spot
|
|||
std::ostream& os_;
|
||||
};
|
||||
|
||||
void
|
||||
std::ostream&
|
||||
to_string(const formula* f, std::ostream& os)
|
||||
{
|
||||
to_string_visitor v(os);
|
||||
f->accept(v);
|
||||
return os;
|
||||
}
|
||||
|
||||
std::string
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace spot
|
|||
{
|
||||
namespace ltl
|
||||
{
|
||||
void to_string(const formula* f, std::ostream& os);
|
||||
std::ostream& to_string(const formula* f, std::ostream& os);
|
||||
std::string to_string(const formula* f);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue