Remove some non-determinism in random_graph()

* src/tgbaalgos/randomgraph.cc (random_graph): Revert the part of
the patch from 2007-02-06 which silently replaced the use of state
index by state pointers.  Storing states pointer in this map cause
some non-determinism because of the memory layout.  It was almost
impossible to reproduce bugs found by tests based on randtgba.
This commit is contained in:
Alexandre Duret-Lutz 2010-01-20 15:23:32 +01:00
parent 9fb8701667
commit dcf7eed11f
2 changed files with 23 additions and 16 deletions

View file

@ -1,3 +1,13 @@
2010-01-20 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Remove some non-determinism in random_graph()
* src/tgbaalgos/randomgraph.cc (random_graph): Revert the part of
the patch from 2007-02-06 which silently replaced the use of state
index by state pointers. Storing states pointer in this map cause
some non-determinism because of the memory layout. It was almost
impossible to reproduce bugs found by tests based on randtgba.
2010-01-18 Damien Lefortier <dam@lrde.epita.fr>
* src/tgbaalgos/ltl2taa.cc: Fix the previous patch.