File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,6 @@ class boolbvt:public arrayst
124
124
// NOLINTNEXTLINE(readability/identifiers)
125
125
typedef arrayst SUB;
126
126
127
- void conversion_failed (const exprt &expr, bvt &bv)
128
- {
129
- bv=conversion_failed (expr);
130
- }
131
-
132
127
bvt conversion_failed (const exprt &expr);
133
128
134
129
typedef std::unordered_map<const exprt, bvt, irep_hash> bv_cachet;
Original file line number Diff line number Diff line change @@ -379,12 +379,7 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
379
379
380
380
auto bv_opt = convert_address_of_rec (address_of_expr.op ());
381
381
if (!bv_opt.has_value ())
382
- {
383
- bvt bv;
384
- bv.resize (bits);
385
- conversion_failed (address_of_expr, bv);
386
- return bv;
387
- }
382
+ return conversion_failed (address_of_expr);
388
383
389
384
CHECK_RETURN (bv_opt->size () == bits);
390
385
return *bv_opt;
@@ -452,9 +447,7 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
452
447
if (it->type ().id ()!=ID_unsignedbv &&
453
448
it->type ().id ()!=ID_signedbv)
454
449
{
455
- bvt failed_bv;
456
- conversion_failed (plus_expr, failed_bv);
457
- return failed_bv;
450
+ return conversion_failed (plus_expr);
458
451
}
459
452
460
453
bv_utilst::representationt rep=
@@ -485,9 +478,7 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
485
478
minus_expr.rhs ().type ().id () != ID_unsignedbv &&
486
479
minus_expr.rhs ().type ().id () != ID_signedbv)
487
480
{
488
- bvt bv;
489
- conversion_failed (minus_expr, bv);
490
- return bv;
481
+ return conversion_failed (minus_expr);
491
482
}
492
483
493
484
const unary_minus_exprt neg_op1 (minus_expr.rhs ());
You can’t perform that action at this time.
0 commit comments