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

Simplify the code of a test case.

* src/tgbatest/maskacc.cc: Simplify iteration on acceptance sets.
* src/tgbatest/maskacc.test: Adjust expected order.
parent ea58d68f
......@@ -47,12 +47,12 @@ main(int argc, char** argv)
if (spot::format_tgba_parse_errors(std::cerr, argv[1], pel))
return 2;
bdd all = aut->all_acceptance_conditions();
while (all != bddfalse)
{
bdd one = bdd_satone(all);
all -= one;
bdd allneg = aut->neg_acceptance_conditions();
for (bdd cur = allneg; cur != bddtrue; cur = bdd_low(cur))
{
int i = bdd_var(cur);
bdd one = bdd_compose(allneg, bdd_nithvar(i), i);
const spot::tgba* masked = spot::build_tgba_mask_acc_ignore(aut, one);
spot::tgba_save_reachable(std::cout, masked);
delete masked;
......
......@@ -35,15 +35,15 @@ EOF
cat >expect1 <<EOF
acc = "B" "A";
"s1", "s2", "a", "A";
"s2", "s3", "a",;
"s3", "s2", "b",;
"s3", "s4", "b", "A";
acc = "B" "A";
"s1", "s3", "b", "B";
"s3", "s2", "b",;
"s2", "s3", "a",;
"s2", "s4", "a", "B";
acc = "B" "A";
"s1", "s2", "a", "A";
"s2", "s3", "a",;
"s3", "s2", "b",;
"s3", "s4", "b", "A";
EOF
run 0 ../maskacc input1 | tee stdout
......
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