Skip to content
Browse files

Shut off all unmatched_return dialyzer warnings

  • Loading branch information...
1 parent 0a38c41 commit aec316842d9ef2e5a2a2689ff3febde231ef615f @kostis kostis committed Apr 17, 2012
Showing with 71 additions and 71 deletions.
  1. +13 −13 src/sfmt216091_tests.erl
  2. +13 −13 src/sfmt4253_tests.erl
  3. +13 −13 src/sfmt607_tests.erl
  4. +13 −13 src/sfmt86243_tests.erl
  5. +19 −19 src/sfmt_tests.erl
View
26 src/sfmt216091_tests.erl
@@ -58,75 +58,75 @@ test_speed_rand_rec1(X, Q, I) ->
test_speed_rand_rec1(X - 1, Q, I2).
test_speed_rand(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt216091:init_gen_rand(1234),
ok = test_speed_rand_rec1(P, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_sfmt_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_sfmt_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_sfmt_uniform_rec1([], X - 1, R, R, I);
test_speed_sfmt_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt216091:uniform_s(I),
test_speed_sfmt_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_sfmt_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt216091:seed(),
ok = test_speed_sfmt_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(I),
test_speed_orig_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_rand_max_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_rand_max_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_rand_max_rec1([], X - 1, R, R, I);
test_speed_rand_max_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt216091:gen_rand32_max(10000, I),
test_speed_rand_max_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_rand_max(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt216091:init_gen_rand(1234),
ok = test_speed_rand_max_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_n_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_n_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_n_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_n_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(10000, I),
test_speed_orig_uniform_n_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform_n(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_n_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
View
26 src/sfmt4253_tests.erl
@@ -58,75 +58,75 @@ test_speed_rand_rec1(X, Q, I) ->
test_speed_rand_rec1(X - 1, Q, I2).
test_speed_rand(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt4253:init_gen_rand(1234),
ok = test_speed_rand_rec1(P, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_sfmt_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_sfmt_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_sfmt_uniform_rec1([], X - 1, R, R, I);
test_speed_sfmt_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt4253:uniform_s(I),
test_speed_sfmt_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_sfmt_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt4253:seed(),
ok = test_speed_sfmt_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(I),
test_speed_orig_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_rand_max_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_rand_max_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_rand_max_rec1([], X - 1, R, R, I);
test_speed_rand_max_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt4253:gen_rand32_max(10000, I),
test_speed_rand_max_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_rand_max(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt4253:init_gen_rand(1234),
ok = test_speed_rand_max_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_n_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_n_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_n_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_n_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(10000, I),
test_speed_orig_uniform_n_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform_n(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_n_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
View
26 src/sfmt607_tests.erl
@@ -58,75 +58,75 @@ test_speed_rand_rec1(X, Q, I) ->
test_speed_rand_rec1(X - 1, Q, I2).
test_speed_rand(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt607:init_gen_rand(1234),
ok = test_speed_rand_rec1(P, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_sfmt_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_sfmt_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_sfmt_uniform_rec1([], X - 1, R, R, I);
test_speed_sfmt_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt607:uniform_s(I),
test_speed_sfmt_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_sfmt_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt607:seed(),
ok = test_speed_sfmt_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(I),
test_speed_orig_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_rand_max_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_rand_max_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_rand_max_rec1([], X - 1, R, R, I);
test_speed_rand_max_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt607:gen_rand32_max(10000, I),
test_speed_rand_max_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_rand_max(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt607:init_gen_rand(1234),
ok = test_speed_rand_max_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_n_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_n_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_n_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_n_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(10000, I),
test_speed_orig_uniform_n_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform_n(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_n_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
View
26 src/sfmt86243_tests.erl
@@ -58,75 +58,75 @@ test_speed_rand_rec1(X, Q, I) ->
test_speed_rand_rec1(X - 1, Q, I2).
test_speed_rand(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt86243:init_gen_rand(1234),
ok = test_speed_rand_rec1(P, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_sfmt_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_sfmt_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_sfmt_uniform_rec1([], X - 1, R, R, I);
test_speed_sfmt_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt86243:uniform_s(I),
test_speed_sfmt_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_sfmt_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt86243:seed(),
ok = test_speed_sfmt_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(I),
test_speed_orig_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_rand_max_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_rand_max_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_rand_max_rec1([], X - 1, R, R, I);
test_speed_rand_max_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt86243:gen_rand32_max(10000, I),
test_speed_rand_max_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_rand_max(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt86243:init_gen_rand(1234),
ok = test_speed_rand_max_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_n_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_n_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_n_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_n_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(10000, I),
test_speed_orig_uniform_n_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform_n(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_n_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
View
38 src/sfmt_tests.erl
@@ -58,109 +58,109 @@ test_speed_rand_rec1(X, Q, I) ->
test_speed_rand_rec1(X - 1, Q, I2).
test_speed_rand(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt:init_gen_rand(1234),
ok = test_speed_rand_rec1(P, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_sfmt_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_sfmt_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_sfmt_uniform_rec1([], X - 1, R, R, I);
test_speed_sfmt_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt:uniform_s(I),
test_speed_sfmt_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_sfmt_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt:seed(),
ok = test_speed_sfmt_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(I),
test_speed_orig_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_wh06_uniform_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_wh06_uniform_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_wh06_uniform_rec1([], X - 1, R, R, I);
test_speed_wh06_uniform_rec1(Acc, X, Q, R, I) ->
{F, I2} = random_wh06:uniform_s(I),
test_speed_wh06_uniform_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_wh06_uniform(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random_wh06:seed(),
ok = test_speed_wh06_uniform_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_rand_max_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_rand_max_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_rand_max_rec1([], X - 1, R, R, I);
test_speed_rand_max_rec1(Acc, X, Q, R, I) ->
{F, I2} = sfmt:gen_rand32_max(10000, I),
test_speed_rand_max_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_rand_max(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = sfmt:init_gen_rand(1234),
ok = test_speed_rand_max_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_orig_uniform_n_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_orig_uniform_n_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_orig_uniform_n_rec1([], X - 1, R, R, I);
test_speed_orig_uniform_n_rec1(Acc, X, Q, R, I) ->
{F, I2} = random:uniform_s(10000, I),
test_speed_orig_uniform_n_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_orig_uniform_n(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random:seed(),
ok = test_speed_orig_uniform_n_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),
T.
test_speed_wh06_uniform_n_rec1(Acc, 0, _, _, _) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
ok;
test_speed_wh06_uniform_n_rec1(Acc, X, 0, R, I) ->
- lists:reverse(Acc),
+ _ = lists:reverse(Acc),
test_speed_wh06_uniform_n_rec1([], X - 1, R, R, I);
test_speed_wh06_uniform_n_rec1(Acc, X, Q, R, I) ->
{F, I2} = random_wh06:uniform_s(10000, I),
test_speed_wh06_uniform_n_rec1([F|Acc], X, Q - 1, R, I2).
test_speed_wh06_uniform_n(P, Q) ->
- statistics(runtime),
+ _ = statistics(runtime),
I = random_wh06:seed(),
ok = test_speed_wh06_uniform_n_rec1([], P, Q, Q, I),
{_, T} = statistics(runtime),

0 comments on commit aec3168

Please sign in to comment.
Something went wrong with that request. Please try again.