swarming: add support everywhere

Swarming implies that a single instance of the kripke
structure (or product) will be explored by diffrent threads
with their own exploration order. Most of the modification
aims to have a thread safe kripke structure.

* spot/kripke/kripke.hh, spot/ltsmin/ltsmin.cc,
spot/ltsmin/ltsmin.hh, spot/mc/ec.hh,
spot/mc/intersect.hh, spot/mc/reachability.hh,
spot/misc/hash.hh, spot/twacube/twacube.hh,
tests/core/twacube.test, tests/ltsmin/modelcheck.cc: here.
This commit is contained in:
Etienne Renault 2016-10-27 12:03:14 +02:00
parent ae1a3601e6
commit 72948661e9
10 changed files with 248 additions and 119 deletions

View file

@ -87,4 +87,34 @@ namespace spot
static_cast<size_t>(uh(p.second)));
}
};
// From primes.utm.edu shuffled. This primes are used when we simulate
// transition shuffling using "primitive root modulo n" technique.
static const unsigned primes[144] =
{
295075531, 334214857, 314607103, 314607191, 334214891, 334214779,
295075421, 472882073, 256203329, 275604599, 314606953, 256203397,
275604547, 256203631, 275604617, 472882141, 472882297, 472882219,
256203229, 256203469, 275604643, 472882169, 275604803, 472882283,
295075463, 334214593, 295075213, 256203373, 314607019, 314607193,
295075399, 256203523, 314607001, 295075289, 256203293, 256203641,
256203307, 314607047, 295075373, 314607053, 314606977, 334214681,
275604691, 275604577, 472882447, 314607031, 275605019, 472882477,
472882499, 314607173, 295075241, 295075471, 295075367, 256203559,
314607233, 275604881, 334214941, 472882103, 275604821, 472882511,
295075357, 472882517, 314607023, 256203317, 295075337, 275605007,
472882391, 256203223, 334214723, 295075381, 295075423, 275604733,
314607113, 256203257, 472882453, 256203359, 295075283, 314607043,
256203403, 472882259, 314606891, 472882253, 314606917, 256203349,
256203457, 295075457, 472882171, 314607229, 295075513, 472882429,
334214953, 275604841, 295075309, 472882099, 334214467, 334214939,
275604869, 314607077, 314607089, 275604947, 275605027, 295075379,
334214861, 314606909, 334214911, 314607199, 275604983, 314606969,
256203221, 334214899, 256203611, 256203679, 472882337, 275604767,
472882199, 295075523, 472882049, 275604817, 334214561, 334214581,
334214663, 295075489, 295075163, 334214869, 334214521, 295075499,
275604913, 334214753, 334214687, 256203491, 295075153, 334214893,
472882411, 472882117, 275604793, 334214833, 334214591, 314607091,
256203419, 275604727, 256203659, 275604961, 334214557, 275604677
};
}