@@ -171,17 +171,17 @@ static exprt transform_external_objects(const exprt& e)
171
171
// / \param instit: the point in the program to do the query
172
172
// / \param [out] result: output
173
173
static void collect_lvsa_access_paths (
174
- exprt const &query,
175
- namespacet const &ns,
174
+ const exprt &query,
175
+ const namespacet &ns,
176
176
local_value_set_analysist &lvsa,
177
- instruction_iteratort const &instit,
177
+ const instruction_iteratort &instit,
178
178
std::set<exprt> &result)
179
179
{
180
180
TMPROF_BLOCK ();
181
181
182
182
if (query.id () == ID_side_effect)
183
183
{
184
- side_effect_exprt const &see = to_side_effect_expr (query);
184
+ const side_effect_exprt &see = to_side_effect_expr (query);
185
185
if (see.get_statement ()==ID_nondet)
186
186
{
187
187
// TODO(marek-trtik): Add computation of a proper points-to set for NONDET
@@ -204,7 +204,7 @@ static void collect_lvsa_access_paths(
204
204
}
205
205
206
206
assert (target.id ()==ID_object_descriptor);
207
- exprt const transformed_object =
207
+ const exprt transformed_object =
208
208
transform_external_objects (
209
209
to_object_descriptor_expr (target).object ());
210
210
@@ -244,10 +244,10 @@ static void collect_lvsa_access_paths(
244
244
// / Call `collect_lvsa_access_paths` and use taint_object_numbering to convert
245
245
// / the results from `exprt`s to the format required for `lvalue_numbers_sett`
246
246
static void collect_lvsa_access_paths (
247
- exprt const & query_in,
248
- namespacet const & ns,
247
+ const exprt & query_in,
248
+ const namespacet & ns,
249
249
local_value_set_analysist& lvsa,
250
- instruction_iteratort const & instit,
250
+ const instruction_iteratort & instit,
251
251
object_numberingt& taint_object_numbering,
252
252
lvalue_numbers_sett& result,
253
253
bool &singular)
@@ -269,11 +269,11 @@ static void collect_lvsa_access_paths(
269
269
}
270
270
271
271
static void collect_lvsa_access_paths (
272
- exprt const & query_in,
272
+ const exprt & query_in,
273
273
namespacet const & ns,
274
274
lvalue_numbers_sett &result,
275
275
local_value_set_analysist& lvsa,
276
- instruction_iteratort const & instit,
276
+ const instruction_iteratort & instit,
277
277
object_numberingt& taint_object_numbering)
278
278
{
279
279
TMPROF_BLOCK ();
@@ -511,12 +511,12 @@ numbered_lvalue_to_taint_mapt taint_algorithm_computing_summary_of_functiont::
511
511
512
512
void taint_algorithm_computing_summary_of_functiont::assign (
513
513
numbered_lvalue_to_taint_mapt &map,
514
- taint_lvalue_numbert const lvalue,
514
+ const taint_lvalue_numbert lvalue,
515
515
const taint_sett &taint)
516
516
{
517
517
TMPROF_BLOCK ();
518
518
519
- auto const it = map.find (lvalue);
519
+ const auto it = map.find (lvalue);
520
520
if (it == map.end ())
521
521
{
522
522
if (!taint.is_bottom ())
@@ -528,12 +528,12 @@ void taint_algorithm_computing_summary_of_functiont::assign(
528
528
529
529
void taint_algorithm_computing_summary_of_functiont::maybe_assign (
530
530
numbered_lvalue_to_taint_mapt &map,
531
- taint_lvalue_numbert const lvalue,
531
+ const taint_lvalue_numbert lvalue,
532
532
const taint_sett &taint)
533
533
{
534
534
TMPROF_BLOCK ();
535
535
536
- auto const it = map.find (lvalue);
536
+ const auto it = map.find (lvalue);
537
537
if (it == map.end ())
538
538
{
539
539
if (!taint.is_bottom ())
@@ -557,7 +557,7 @@ bool taint_algorithm_computing_summary_of_functiont::proper_subset(
557
557
bool common_base=a.get_base ()==b.get_base ();
558
558
for (auto a_it=a.cbegin (); a_it!=a.cend (); ++a_it)
559
559
{
560
- auto const b_it=b.find (a_it->first );
560
+ const auto b_it=b.find (a_it->first );
561
561
if (b_it==b.cend ())
562
562
return false ;
563
563
// Necessarily equal?
@@ -603,7 +603,7 @@ void taint_algorithm_computing_summary_of_functiont::
603
603
{
604
604
std::size_t param_idx;
605
605
{
606
- // std::string const caller = as_string(caller_ident);
606
+ // const std::string caller = as_string(caller_ident);
607
607
const std::string param_name=
608
608
as_string (
609
609
numbering->at (input.first ).get (ID_identifier));
@@ -626,7 +626,7 @@ void taint_algorithm_computing_summary_of_functiont::
626
626
*numbering);
627
627
628
628
lvalue_numbers_sett resolved_lvalues;
629
- for (auto const & lvalue : argument_lvalues)
629
+ for (const auto & lvalue : argument_lvalues)
630
630
{
631
631
const auto it =
632
632
summary->get_map_output_lvalues_to_param_indices ().find (lvalue);
@@ -643,9 +643,9 @@ void taint_algorithm_computing_summary_of_functiont::
643
643
}
644
644
645
645
taint_sett argument_taint;
646
- for (auto const &lvalue : resolved_lvalues)
646
+ for (const auto &lvalue : resolved_lvalues)
647
647
{
648
- auto const it = a.find (lvalue);
648
+ const auto it = a.find (lvalue);
649
649
if (it != a.cend ())
650
650
argument_taint |= it->second ;
651
651
}
@@ -784,7 +784,7 @@ void taint_algorithm_computing_summary_of_functiont::initialise_domain(
784
784
}
785
785
}
786
786
787
- for (const auto lvaluenum : environment)
787
+ for (const auto lvaluenum : environment)
788
788
{
789
789
const taint_lvaluet &lvalue=numbering->at (lvaluenum);
790
790
// This is an output parameter to get_this passed by reference
@@ -855,10 +855,10 @@ void taint_algorithm_computing_summary_of_functiont::initialise_domain(
855
855
856
856
void taint_algorithm_computing_summary_of_functiont::handle_assignment (
857
857
const code_assignt& asgn,
858
- numbered_lvalue_to_taint_mapt const & a,
858
+ const numbered_lvalue_to_taint_mapt & a,
859
859
const taint_summary_inputt &input,
860
860
numbered_lvalue_to_taint_mapt& result,
861
- instruction_iteratort const & Iit,
861
+ const instruction_iteratort & Iit,
862
862
local_value_set_analysist &lvsa)
863
863
{
864
864
TMPROF_BLOCK ();
@@ -972,7 +972,7 @@ numbered_lvalue_to_taint_mapt taint_algorithm_computing_summary_of_functiont::
972
972
{
973
973
TMPROF_BLOCK ();
974
974
975
- goto_programt::instructiont const & I=*Iit;
975
+ const goto_programt::instructiont & I=*Iit;
976
976
numbered_lvalue_to_taint_mapt result;
977
977
// Take a cheap read-only view of the incoming domain:
978
978
result.set_base (&a);
0 commit comments