* src/ltlvisit/dump.hh (dump): Take a formula* as argument,
not a formula&. This is more homogeneous. * 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/ltltest/readltl.cc, src/ltltest/equals.cc, src/ltltest/tostring.cc: Adjust usage.
This commit is contained in:
parent
35f77be6c7
commit
7685d3a5b8
10 changed files with 70 additions and 63 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include "ltlast/allnodes.hh"
|
||||
|
||||
|
||||
namespace spot
|
||||
namespace spot
|
||||
{
|
||||
namespace ltl
|
||||
{
|
||||
|
|
@ -15,13 +15,13 @@ namespace spot
|
|||
: os_(os)
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
|
||||
virtual
|
||||
~dump_visitor()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
void
|
||||
visit(const spot::ltl::atomic_prop* ap)
|
||||
{
|
||||
os_ << "AP(" << ap->name() << ")";
|
||||
|
|
@ -31,8 +31,8 @@ namespace spot
|
|||
visit(const spot::ltl::constant* c)
|
||||
{
|
||||
os_ << "constant(" << c->val_name() << ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
visit(const spot::ltl::binop* bo)
|
||||
{
|
||||
|
|
@ -42,7 +42,7 @@ namespace spot
|
|||
bo->second()->accept(*this);
|
||||
os_ << ")";
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
visit(const spot::ltl::unop* uo)
|
||||
{
|
||||
|
|
@ -50,7 +50,7 @@ namespace spot
|
|||
uo->child()->accept(*this);
|
||||
os_ << ")";
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
visit(const spot::ltl::multop* mo)
|
||||
{
|
||||
|
|
@ -68,11 +68,11 @@ namespace spot
|
|||
std::ostream& os_;
|
||||
};
|
||||
|
||||
void
|
||||
dump(const formula& f, std::ostream& os)
|
||||
void
|
||||
dump(const formula* f, std::ostream& os)
|
||||
{
|
||||
dump_visitor v(os);
|
||||
f.accept(v);
|
||||
f->accept(v);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue