File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,15 @@ Author: Diffblue Ltd.
21
21
#include < goto-programs/goto_convert_functions.h>
22
22
#include < goto-programs/goto_model.h>
23
23
24
- #include < algorithm>
25
- #include < iterator>
26
- #include < set>
27
-
28
24
#include " function_harness_generator_options.h"
29
25
#include " goto_harness_generator_factory.h"
30
26
#include " recursive_initialization.h"
31
27
28
+ #include < algorithm>
29
+ #include < iterator>
30
+ #include < set>
31
+ #include < utility>
32
+
32
33
// / This contains implementation details of
33
34
// / function call harness generator to avoid
34
35
// / leaking them out into the header.
@@ -136,7 +137,8 @@ void function_call_harness_generatort::handle_option(
136
137
{
137
138
equal_param_set.insert (param_id);
138
139
}
139
- p_impl->function_parameters_to_treat_equal .push_back (equal_param_set);
140
+ p_impl->function_parameters_to_treat_equal .push_back (
141
+ std::move (equal_param_set));
140
142
}
141
143
}
142
144
}
@@ -527,7 +529,8 @@ function_call_harness_generatort::implt::declare_arguments(
527
529
cluster_argument_names.insert (
528
530
parameter_name_to_argument_name[parameter_name]);
529
531
}
530
- function_arguments_to_treat_equal.push_back (cluster_argument_names);
532
+ function_arguments_to_treat_equal.push_back (
533
+ std::move (cluster_argument_names));
531
534
}
532
535
533
536
allocate_objects.declare_created_symbols (function_body);
Original file line number Diff line number Diff line change 8
8
9
9
#include " bv_utils.h"
10
10
11
+ #include < utility>
12
+
11
13
bvt bv_utilst::build_constant (const mp_integer &n, std::size_t width)
12
14
{
13
15
std::string n_str=integer2binary (n, width);
@@ -672,8 +674,8 @@ bvt bv_utilst::wallace_tree(const std::vector<bvt> &pps)
672
674
carry (a[bit-1 ], b[bit-1 ], c[bit-1 ]);
673
675
}
674
676
675
- new_pps.push_back (s );
676
- new_pps.push_back (t );
677
+ new_pps.push_back (std::move (s) );
678
+ new_pps.push_back (std::move (t) );
677
679
}
678
680
679
681
// pass onwards up to two remaining partial products
You can’t perform that action at this time.
0 commit comments