unit_propagation: Add a test with multiple unit clauses

* tests/core/acc.cc, tests/core/acc.test: here.
This commit is contained in:
Florian Renkin 2020-04-17 13:38:46 +02:00
parent 927ea7046b
commit 142f1afab2
2 changed files with 5 additions and 0 deletions

View file

@ -237,5 +237,9 @@ int main()
expect(e, "Too many acceptance sets used.");
}
auto cond1 = spot::acc_cond::acc_code(
"(Inf(0) & Inf(5)) | Inf(5) | Inf(0)");
std::cout << cond1.unit_propagation() << '\n';
return 0;
}

View file

@ -85,6 +85,7 @@ Fin(2) | Inf(2)
Inf(2) & Fin(2)
(Fin(0)|Fin(3)) | (Inf(1) & Fin(2))
(Fin(0)|Fin(3)) | (Inf(1) & Fin(2))
Inf(5) | Inf(0)
EOF
run 0 ../acc > stdout