@@ -336,15 +336,15 @@ void local_value_sett::assign(
336
336
// initialiser from an external set that has been read from somewhere
337
337
// and then written.
338
338
339
- std::vector<std::pair<unsigned , exprt>> replacements;
339
+ std::vector<std::pair<object_numberingt::number_type , exprt>> replacements;
340
340
for (const auto &obj : values_rhs.read ())
341
341
{
342
342
const exprt &objexpr=object_numbering[obj.first ];
343
343
if (objexpr.id ()==ID_external_value_set)
344
344
{
345
- external_value_set_exprt mod (
345
+ external_value_set_exprt evs_non_initializer (
346
346
to_external_value_set (objexpr).as_non_initializer ());
347
- replacements.push_back ({ obj.first , mod} );
347
+ replacements.emplace_back ( obj.first , evs_non_initializer );
348
348
}
349
349
}
350
350
@@ -384,8 +384,6 @@ void local_value_sett::assign(
384
384
}
385
385
}
386
386
387
- // Note customised cases must return to avoid falling through to
388
- // value_sett's default behaviour.
389
387
void local_value_sett::assign_rec (
390
388
const exprt &lhs,
391
389
const object_mapt &values_rhs,
@@ -414,7 +412,6 @@ void local_value_sett::assign_rec(
414
412
make_union (e.object_map , values_rhs);
415
413
else
416
414
e.object_map =values_rhs;
417
- return ;
418
415
}
419
416
else if (lhs.id ()==ID_dynamic_object)
420
417
{
@@ -452,7 +449,6 @@ void local_value_sett::assign_rec(
452
449
// Weak-update of the dynamic-object
453
450
make_union (entry.object_map , values_rhs);
454
451
}
455
- return ;
456
452
}
457
453
else if (lhs.id ()==ID_external_value_set)
458
454
{
@@ -467,9 +463,7 @@ void local_value_sett::assign_rec(
467
463
declared_on_type,
468
464
suffix_without_subtype);
469
465
std::string access_path_suffix=
470
- suffix_without_subtype == " " ?
471
- " []" :
472
- suffix_without_subtype;
466
+ suffix_without_subtype.empty () ? " []" : suffix_without_subtype;
473
467
access_path_entry_exprt newentry (
474
468
access_path_suffix,
475
469
function,
@@ -496,11 +490,12 @@ void local_value_sett::assign_rec(
496
490
}
497
491
498
492
make_union (lhs_entry.object_map , values_rhs);
499
- return ;
500
493
}
501
-
502
- // For everything else, fall back on default behaviour:
503
- baset::assign_rec (lhs, values_rhs, suffix, ns, add_to_sets);
494
+ else
495
+ {
496
+ // For everything else, fall back on default behaviour:
497
+ baset::assign_rec (lhs, values_rhs, suffix, ns, add_to_sets);
498
+ }
504
499
}
505
500
506
501
void local_value_sett::apply_code (
0 commit comments