minimize_wdba: fix nondeterministic execution

Fixes core/readsave.test and python/automata.ipython
with gcc-snapshot (future gcc 7).

* spot/twaalgos/minimize.cc: Here.
* NEWS: Mention the change.
* tests/core/acc_word.test: Adjust test case.
This commit is contained in:
Alexandre Duret-Lutz 2016-07-25 12:00:30 +02:00
parent 20cf43b3ea
commit d7d6b40926
3 changed files with 13 additions and 10 deletions

View file

@ -49,9 +49,9 @@
namespace spot
{
// FIXME: do we really want to use unordered_set instead of set here?
// This calls for benchmarking.
typedef state_set hash_set;
// This is called hash_set for historical reason, but we need the
// order inside hash_set to be deterministic.
typedef std::set<const state*, state_ptr_less_than> hash_set;
typedef state_map<unsigned> hash_map;
namespace