Skip to content

Commit

Permalink
Avoid warnings in benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliensf committed May 16, 2020
1 parent 06c9ecb commit 7437180
Show file tree
Hide file tree
Showing 21 changed files with 16 additions and 27 deletions.
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_no_iostate/eval_util.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

:- implementation.

:- import_module int, list, exception, map, string, gml.
:- import_module int, list, exception, map, string.
:- import_module pprint.

write_nice_exception(E) -->
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_no_iostate/peephole.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

:- implementation.

:- import_module eval, gml, op, vector.
:- import_module gml, op, vector.
:- import_module bool, float, int, list, io, map, string.
:- import_module maybe.

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_no_iostate/precompute_lights.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
:- implementation.

:- import_module exception, float, int.
:- import_module space_partition, renderer.
:- import_module renderer.
:- import_module maybe.
:- import_module pair.
%------------------------------------------------------------------------------%
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_no_iostate/renderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
:- import_module transform_object, gml, op.
:- import_module precompute_lights.
:- import_module map, array, exception, require, math.
:- import_module int, float, list, std_util, string.
:- import_module int, float, std_util, string.

do_rendering(State, !IO) :-
RenderCommands = State ^ s_render_commands,
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_no_iostate/trans.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@

:- implementation.

:- import_module exception, string, math, list, std_util.
:- import_module exception, string, math, std_util.

% NOTE 1: points and vectors are represented using the point/3 type
% defined in eval.m. For the purposes, a point (x, y, z) is
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_no_iostate_no_accum/eval_util.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

:- implementation.

:- import_module int, list, exception, map, string, gml.
:- import_module int, list, exception, map, string.
:- import_module pprint.

write_nice_exception(E) -->
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_no_iostate_no_accum/peephole.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

:- implementation.

:- import_module eval, gml, op, vector.
:- import_module gml, op, vector.
:- import_module bool, float, int, list, io, map, string.
:- import_module maybe.

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_no_iostate_no_accum/renderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
:- import_module transform_object, gml, op.
:- import_module precompute_lights.
:- import_module map, array, exception, require, math.
:- import_module int, float, list, std_util, string.
:- import_module int, float, std_util, string.
:- import_module cord.

do_rendering(State, !IO) :-
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_no_iostate_no_accum/trans.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@

:- implementation.

:- import_module exception, string, math, list, std_util.
:- import_module exception, string, math, std_util.

% NOTE 1: points and vectors are represented using the point/3 type
% defined in eval.m. For the purposes, a point (x, y, z) is
Expand Down
3 changes: 0 additions & 3 deletions benchmarks/progs/icfp2000_par/eval.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@

:- import_module int.
:- import_module float.
:- import_module maybe.
:- import_module pair.
:- import_module exception.
:- import_module string.
Expand Down Expand Up @@ -614,8 +613,6 @@
:- pred extra_operator_mode(extra_operator::in,
extra_operator::out(extra_operator_inst)) is det.

:- pragma promise_pure(extra_operator_mode/2).

:- pragma foreign_proc("C",
extra_operator_mode(A::in, B::out(extra_operator_inst)),
[will_not_call_mercury, thread_safe, promise_pure],
Expand Down
2 changes: 0 additions & 2 deletions benchmarks/progs/icfp2000_par/eval_util.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

:- implementation.

:- import_module gml.

:- import_module exception.
:- import_module int.
:- import_module list.
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/progs/icfp2000_par/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

main(!IO) :-
io.command_line_arguments(AllArgs, !IO),
OptionOps = option_ops(short_option, long_option, option_defaults),
OptionOps = option_ops_multi(short_option, long_option, option_defaults),
getopt.process_options(OptionOps, AllArgs, _OptionArgs, NonOptionArgs,
OptionResult),
(
Expand Down Expand Up @@ -102,7 +102,7 @@
long_option("target-parallelism", target_parallelism).
long_option("time_filename", time_filename).

:- pred option_defaults(option::out, option_data::out) is nondet.
:- pred option_defaults(option::out, option_data::out) is multi.

option_defaults(target_parallelism, int(0)).
option_defaults(time_filename, string("")).
Expand Down
1 change: 0 additions & 1 deletion benchmarks/progs/icfp2000_par/peephole.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

:- implementation.

:- import_module eval.
:- import_module gml.
:- import_module op.
:- import_module vector.
Expand Down
1 change: 0 additions & 1 deletion benchmarks/progs/icfp2000_par/precompute_lights.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
:- implementation.

:- import_module renderer.
:- import_module space_partition.

:- import_module exception.
:- import_module float.
Expand Down
3 changes: 0 additions & 3 deletions benchmarks/progs/icfp2000_par/renderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,8 @@
:- import_module exception.
:- import_module float.
:- import_module int.
:- import_module list.
:- import_module map.
:- import_module math.
:- import_module maybe.
:- import_module pair.
:- import_module require.
:- import_module string.

Expand Down
1 change: 0 additions & 1 deletion benchmarks/progs/icfp2000_par/trans.m
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@
:- implementation.

:- import_module exception.
:- import_module list.
:- import_module math.
:- import_module std_util.
:- import_module string.
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_par_pbone/eval_util.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

:- implementation.

:- import_module int, list, exception, map, string, gml.
:- import_module int, list, exception, map, string.
:- import_module pprint.

write_nice_exception(E) -->
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_par_pbone/peephole.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

:- implementation.

:- import_module eval, gml, op, vector.
:- import_module gml, op, vector.
:- import_module bool, float, int, list, io, map, string.
:- import_module maybe.

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_par_pbone/precompute_lights.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
:- implementation.

:- import_module exception, float, int.
:- import_module space_partition, renderer.
:- import_module renderer.
:- import_module maybe.
:- import_module pair.
%------------------------------------------------------------------------------%
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_par_pbone/renderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
:- import_module transform_object, gml, op.
:- import_module precompute_lights.
:- import_module map, array, exception, require, math.
:- import_module int, float, list, std_util, string.
:- import_module int, float, std_util, string.
:- import_module cord.

do_rendering(State, !IO) :-
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/progs/icfp2000_par_pbone/trans.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@

:- implementation.

:- import_module exception, string, math, list, std_util.
:- import_module exception, string, math, std_util.

% NOTE 1: points and vectors are represented using the point/3 type
% defined in eval.m. For the purposes, a point (x, y, z) is
Expand Down

0 comments on commit 7437180

Please sign in to comment.