degen: fix handling of degen-lcache=1

* spot/twaalgos/degen.cc: Here.
* tests/core/degendet.test: Add test case.
* tests/core/ltl2ta.test: Adjust expected output.
* NEWS: Mention the issue.
This commit is contained in:
Alexandre Duret-Lutz 2016-06-21 18:03:02 +02:00
parent 488ef820d5
commit 205e2116d1
4 changed files with 38 additions and 20 deletions

View file

@ -519,6 +519,8 @@ namespace spot
lvl = std::max(lvl_cache[d.first].first, lvl);
else if (use_lvl_cache == 2)
lvl = std::min(lvl_cache[d.first].first, lvl);
else
lvl = lvl_cache[d.first].first; // Do not change
}
lvl_cache[d.first] = std::make_pair(lvl, true);
}