Skip to content

Commit f1f32dc

Browse files
author
Owen Jones
committed
Refactoring: Rename rhs_map to rhs_values
1 parent 623285b commit f1f32dc

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/pointer-analysis/local_value_set_analysis.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ void local_value_set_analysist::transform_function_stub(
414414
const auto &rhs_expr = assignment.second;
415415
if(pre_call_rhs_value_sets.count(rhs_expr))
416416
continue;
417-
auto &rhs_map = pre_call_rhs_value_sets[rhs_expr];
417+
value_sett::object_mapt &rhs_values = pre_call_rhs_value_sets[rhs_expr];
418418
if(rhs_expr.id() == ID_external_value_set)
419419
{
420420
// The RHS expression is an external value set. Expand this to read from
@@ -441,16 +441,16 @@ void local_value_set_analysist::transform_function_stub(
441441
rhs_entries);
442442
}
443443

444-
// Accumulate all possibly-read pointers into `rhs_map`:
444+
// Accumulate all possibly-read pointers into `rhs_values`:
445445
for(const auto &rhs_entry : rhs_entries)
446446
{
447447
valuesets.make_union_adjusting_types(
448-
rhs_map, rhs_entry->object_map, evse.type(), ns);
448+
rhs_values, rhs_entry->object_map, evse.type(), ns);
449449
}
450450
// Also add the external set itself,
451451
// representing the possibility that the read
452452
// comes from outside *this* function as well:
453-
valuesets.insert(rhs_map, evse);
453+
valuesets.insert(rhs_values, evse);
454454
}
455455
else if(has_prefix(evse_label, PRECISE_EVS_PREFIX))
456456
{
@@ -459,7 +459,8 @@ void local_value_set_analysist::transform_function_stub(
459459
exprt precise_access_path_expr =
460460
get_expr_from_precise_evs(evse, function_symbol, fcall, ns, *this);
461461

462-
valuesets.get_value_set(precise_access_path_expr, rhs_map, ns, false);
462+
valuesets.get_value_set(
463+
precise_access_path_expr, rhs_values, ns, false);
463464
}
464465
else
465466
{
@@ -470,7 +471,7 @@ void local_value_set_analysist::transform_function_stub(
470471
exprt root_object_expr = get_expr_from_root_object_evs(
471472
evse, function_symbol, fcall, ns, *this);
472473

473-
valuesets.get_value_set(root_object_expr, rhs_map, ns, false);
474+
valuesets.get_value_set(root_object_expr, rhs_values, ns, false);
474475
}
475476
}
476477
else
@@ -485,7 +486,7 @@ void local_value_set_analysist::transform_function_stub(
485486
valuesets.demote_most_recent_dynamic_objects(loc_number);
486487
}
487488

488-
valuesets.insert(rhs_map, rhs_expr);
489+
valuesets.insert(rhs_values, rhs_expr);
489490
}
490491
}
491492

0 commit comments

Comments
 (0)