random: Get rid of uniform_distribution (non-portable).

* src/misc/random.cc, src/misc/random.hh,
src/tgbaalgos/randomgraph.cc, src/tgbatest/randaut.test,
src/tgbatest/randomize.test, src/tgbatest/readsave.test,
src/ltlvisit/simplify.cc, src/tgbaalgos/randomize.cc,
src/graph/graph.hh, src/tgbatest/randpsl.test: here.
This commit is contained in:
Etienne Renault 2015-02-11 11:19:25 +01:00
parent 5610d10ac3
commit 734bceff8e
10 changed files with 237 additions and 88 deletions

View file

@ -86,32 +86,7 @@ grep "unknown argument for --randomize: 'f'" stderr
cat >input <<EOF
HOA: v1
States: 5
Start: 0
AP: 4 "a" "b" "c" "d"
acc-name: all
Acceptance: 0 t
properties: trans-labels explicit-labels state-acc
--BODY--
State: 0 "s0"
[0] 1
[1] 2
[2] 3
[3] 4
State: 1 "s1"
[0] 1
State: 2 "s2"
[1] 2
State: 3 "s3"
[2] 3
State: 4 "s4"
[3] 4
--END--
EOF
$autfilt --randomize --seed=1 input -H > output
cat >expected <<EOF
HOA: v1
States: 5
Start: 1
Start: 4
AP: 4 "a" "b" "c" "d"
acc-name: all
Acceptance: 0 t
@ -119,17 +94,42 @@ properties: trans-labels explicit-labels state-acc
--BODY--
State: 0 "s1"
[0] 0
State: 1 "s0"
[1] 3
State: 1 "s3"
[2] 1
State: 2 "s2"
[1] 2
State: 3 "s4"
[3] 3
State: 4 "s0"
[3] 3
[2] 1
[0] 0
[2] 2
[3] 4
State: 2 "s3"
[2] 2
State: 3 "s2"
[1] 3
State: 4 "s4"
[3] 4
[1] 2
--END--
EOF
$autfilt --randomize --seed=1 input -H > output
cat >expected <<EOF
HOA: v1
States: 5
Start: 3
AP: 4 "a" "b" "c" "d"
acc-name: all
Acceptance: 0 t
properties: trans-labels explicit-labels state-acc
--BODY--
State: 0 "s4"
[3] 0
State: 1 "s2"
[1] 1
State: 2 "s1"
[0] 2
State: 3 "s0"
[1] 1
[3] 0
[2] 4
[0] 2
State: 4 "s3"
[2] 4
--END--
EOF