unit_propagation: Correct result when multiple colors are possible

* spot/twa/acc.cc: Here.
* tests/core/acc.cc, tests/core/acc.test, tests/core/remfin.test:
Update tests.
This commit is contained in:
Florian Renkin 2020-04-18 19:29:41 +02:00 committed by Alexandre Duret-Lutz
parent 100fe3f00c
commit 262b24e6d7
4 changed files with 31 additions and 18 deletions

View file

@ -240,6 +240,10 @@ int main()
auto cond1 = spot::acc_cond::acc_code(
"(Inf(0) & Inf(5)) | Inf(5) | Inf(0)");
std::cout << cond1.unit_propagation() << '\n';
auto cond2 = spot::acc_cond::acc_code("Fin(1) | Inf(0) | Inf(0)");
std::cout << cond2.unit_propagation() << '\n';
auto cond3 = spot::acc_cond::acc_code("Inf(0) & Inf(2) | Fin(2)");
std::cout << cond3.unit_propagation() << '\n';
return 0;
}