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

* 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.
parent c7a269dd
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
show_formula_gif.
......
......@@ -24,19 +24,19 @@ namespace spot
void
visit(const atomic_prop* ap)
{
draw_node_(ap, ap->name());
draw_node_(ap, ap->name(), true);
}
void
visit(const constant* c)
{
draw_node_(c, c->val_name());
draw_node_(c, c->val_name(), true);
}
void
visit(const binop* bo)
{
if (draw_node_(bo, bo->op_name(), true))
if (draw_node_(bo, bo->op_name()))
{
dotty_visitor v(*this);
bo->first()->accept(v);
......@@ -47,14 +47,14 @@ namespace spot
void
visit(const unop* uo)
{
if (draw_node_(uo, uo->op_name(), true))
if (draw_node_(uo, uo->op_name()))
uo->child()->accept(*this);
}
void
visit(const multop* mo)
{
if (!draw_node_(mo, mo->op_name(), true))
if (!draw_node_(mo, mo->op_name()))
return;
unsigned max = mo->size();
for (unsigned n = 0; n < max; ++n)
......@@ -94,7 +94,7 @@ namespace spot
os_ << " " << node
<< " [label=\"" << str << "\"";
if (rec)
os_ << ", shabe=box";
os_ << ", shape=box";
os_ << "];" << std::endl;
return true;
}
......
Supports Markdown
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