Commit 98c8725d authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

print_dot_psl: fix numbering of commutative operands

* spot/tl/dot.cc: Here.
* tests/python/formulas.ipynb: Add test case.
* NEWS: Mention the bug.
parent dc1f7133
Pipeline #5199 passed with stages
in 151 minutes and 40 seconds
New in spot 2.7.0.dev (not yet release)
Nothing yet.
Bugs fixed:
- The print_dot_psl() function would incorrectly number all but the
first children of commutative n-ary operators: in this case no
numbering was expected.
New in spot 2.7 (2018-12-11)
......
......@@ -122,7 +122,8 @@ namespace spot
else if (childnum == -1)
os_ << " [taillabel=\"R\"]";
os_ << ";\n";
++childnum;
if (childnum)
++childnum;
}
return src;
......
This diff is collapsed.
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