* src/ltlvisit/dotty.cc (draw_node_): s/shabe/shape/.
(visit): Draw rectangular node for atomic propositions and constant. This is an attempt to mimic BuDDy's output.
This commit is contained in:
parent
c7a269dddc
commit
65b6a4d8da
2 changed files with 10 additions and 6 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
2003-08-06 Alexandre Duret-Lutz <adl@gnu.org>
|
2003-08-06 Alexandre Duret-Lutz <adl@gnu.org>
|
||||||
|
|
||||||
|
* src/ltlvisit/dotty.cc (draw_node_): s/shabe/shape/.
|
||||||
|
(visit): Draw rectangular node for atomic propositions and
|
||||||
|
constant. This is an attempt to mimic BuDDy's output.
|
||||||
|
|
||||||
* wrap/python/cgi/ltl2tgba.in: Handle show_formula_dot and
|
* wrap/python/cgi/ltl2tgba.in: Handle show_formula_dot and
|
||||||
show_formula_gif.
|
show_formula_gif.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,19 +24,19 @@ namespace spot
|
||||||
void
|
void
|
||||||
visit(const atomic_prop* ap)
|
visit(const atomic_prop* ap)
|
||||||
{
|
{
|
||||||
draw_node_(ap, ap->name());
|
draw_node_(ap, ap->name(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
visit(const constant* c)
|
visit(const constant* c)
|
||||||
{
|
{
|
||||||
draw_node_(c, c->val_name());
|
draw_node_(c, c->val_name(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
visit(const binop* bo)
|
visit(const binop* bo)
|
||||||
{
|
{
|
||||||
if (draw_node_(bo, bo->op_name(), true))
|
if (draw_node_(bo, bo->op_name()))
|
||||||
{
|
{
|
||||||
dotty_visitor v(*this);
|
dotty_visitor v(*this);
|
||||||
bo->first()->accept(v);
|
bo->first()->accept(v);
|
||||||
|
|
@ -47,14 +47,14 @@ namespace spot
|
||||||
void
|
void
|
||||||
visit(const unop* uo)
|
visit(const unop* uo)
|
||||||
{
|
{
|
||||||
if (draw_node_(uo, uo->op_name(), true))
|
if (draw_node_(uo, uo->op_name()))
|
||||||
uo->child()->accept(*this);
|
uo->child()->accept(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
visit(const multop* mo)
|
visit(const multop* mo)
|
||||||
{
|
{
|
||||||
if (!draw_node_(mo, mo->op_name(), true))
|
if (!draw_node_(mo, mo->op_name()))
|
||||||
return;
|
return;
|
||||||
unsigned max = mo->size();
|
unsigned max = mo->size();
|
||||||
for (unsigned n = 0; n < max; ++n)
|
for (unsigned n = 0; n < max; ++n)
|
||||||
|
|
@ -94,7 +94,7 @@ namespace spot
|
||||||
os_ << " " << node
|
os_ << " " << node
|
||||||
<< " [label=\"" << str << "\"";
|
<< " [label=\"" << str << "\"";
|
||||||
if (rec)
|
if (rec)
|
||||||
os_ << ", shabe=box";
|
os_ << ", shape=box";
|
||||||
os_ << "];" << std::endl;
|
os_ << "];" << std::endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue