@@ -26,7 +26,7 @@ This module defines interfaces and functionality for taint summaries.
26
26
#include < util/parameter_indices.h>
27
27
#include < util/simplify_expr.h>
28
28
#include < util/expr_util.h>
29
- #include < util/namespace_utils .h>
29
+ #include < util/symbol_utils .h>
30
30
#include < analyses/ai.h>
31
31
#include < vector>
32
32
#include < algorithm>
@@ -39,7 +39,7 @@ This module defines interfaces and functionality for taint summaries.
39
39
40
40
41
41
// TODO: move this function to some more related module.
42
- static bool is_pure_local (exprt const & lvalue, namespace_utilst const & nsu)
42
+ static bool is_pure_local (exprt const & lvalue, symbol_utilst const & nsu)
43
43
{
44
44
return lvalue.id ()!=ID_member &&
45
45
lvalue.id ()!=ID_external_value_set &&
@@ -455,7 +455,7 @@ void taint_algorithm_computing_summary_of_functiont::
455
455
{
456
456
lvalue_numbers_sett argument_lvalues;
457
457
458
- if (namespace_utilst (program->get_namespace ()).is_parameter (
458
+ if (symbol_utilst (program->get_namespace ()).is_parameter (
459
459
numbering->at (input.first )))
460
460
{
461
461
std::size_t param_idx;
@@ -519,7 +519,7 @@ void taint_algorithm_computing_summary_of_functiont::
519
519
if (lvalue.is_nil ())
520
520
continue ;
521
521
lvalue_numbers_sett argument_lvalues;
522
- if (namespace_utilst (program->get_namespace ()).is_parameter (lvalue))
522
+ if (symbol_utilst (program->get_namespace ()).is_parameter (lvalue))
523
523
{
524
524
std::size_t param_idx;
525
525
{
@@ -650,7 +650,7 @@ void taint_algorithm_computing_summary_of_functiont::initialise_domain(
650
650
for (const std::pair<taint_lvalue_numbert, taint_variablet>& input
651
651
: summary->get_input ())
652
652
{
653
- if (namespace_utilst (program->get_namespace ())
653
+ if (symbol_utilst (program->get_namespace ())
654
654
.is_parameter (numbering->at (input.first )))
655
655
{
656
656
// Collect access paths for the corresponding actual argument:
@@ -673,9 +673,9 @@ void taint_algorithm_computing_summary_of_functiont::initialise_domain(
673
673
it,
674
674
*numbering);
675
675
}
676
- else if (!namespace_utilst (program->get_namespace ()).is_parameter (
676
+ else if (!symbol_utilst (program->get_namespace ()).is_parameter (
677
677
numbering->at (input.first )) &&
678
- !namespace_utilst (program->get_namespace ())
678
+ !symbol_utilst (program->get_namespace ())
679
679
.is_return_value_auxiliary (numbering->at (input.first )))
680
680
{
681
681
environment.insert (input.first );
@@ -704,8 +704,8 @@ void taint_algorithm_computing_summary_of_functiont::initialise_domain(
704
704
const taint_lvaluet &lvalue=numbering->at (lvaluenum);
705
705
// This is an output parameter to get_this passed by reference
706
706
const code_typet::parametert *possible_fn_this;
707
- if (!is_pure_local (lvalue, program->get_namespace ())
708
- && !namespace_utilst (program->get_namespace ()).
707
+ if (!is_pure_local (lvalue, symbol_utilst ( program->get_namespace () ))
708
+ && !symbol_utilst (program->get_namespace ()).
709
709
is_return_value_auxiliary (lvalue)
710
710
&& !(!function.type .get_this (possible_fn_this) &&
711
711
&lvalue==possible_fn_this)
@@ -1319,10 +1319,10 @@ void taint_algorithm_computing_summary_of_functiont::
1319
1319
continue ;
1320
1320
1321
1321
const auto &lvalue=numbering->at (end_value.first );
1322
- if (is_pure_local (lvalue, program->get_namespace ()))
1322
+ if (is_pure_local (lvalue, symbol_utilst ( program->get_namespace () )))
1323
1323
continue ;
1324
1324
1325
- if (namespace_utilst (program->get_namespace ()).is_parameter (lvalue) &&
1325
+ if (symbol_utilst (program->get_namespace ()).is_parameter (lvalue) &&
1326
1326
lvalue.type ().id ()!=ID_pointer)
1327
1327
continue ;
1328
1328
0 commit comments