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

acc: avoid superfluous parentheses when printing acceptance

* src/tgba/acc.cc: Do not output (Inf(x)) or (Fin(x)).
* src/tgbatest/acc.test: Adjust.
parent 76c676db
......@@ -88,6 +88,9 @@ namespace spot
}
else
{
if (!top)
// Avoid extra parentheses if there is only one set
top = code[pos - 1].mark.count() == 1;
unsigned level = 0;
const char* and_ = "";
if (!top)
......@@ -118,6 +121,9 @@ namespace spot
}
else
{
if (!top)
// Avoid extra parentheses if there is only one set
top = code[pos - 1].mark.count() == 1;
unsigned level = 0;
const char* or_ = "";
if (!top)
......
......@@ -60,10 +60,10 @@ stripping
#1: {4}
#1: {2}
2 Inf(0)&Inf(1)&Inf(3)
5 (Fin(2)) | (Inf(0)&Inf(1)&Inf(3))
7 (Fin(0)) | (Fin(2)) | (Inf(0)&Inf(1)&Inf(3))
7 (Fin(0)) | (Fin(2)) | (Inf(0)&Inf(1)&Inf(3))
7 (Fin(0)) | (Fin(2)) | (Inf(0)&Inf(1)&Inf(3))
5 Fin(2) | (Inf(0)&Inf(1)&Inf(3))
7 Fin(0) | Fin(2) | (Inf(0)&Inf(1)&Inf(3))
7 Fin(0) | Fin(2) | (Inf(0)&Inf(1)&Inf(3))
7 Fin(0) | Fin(2) | (Inf(0)&Inf(1)&Inf(3))
2 f
EOF
......
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