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 @@ -382,12 +382,7 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
382
382
383
383
auto bv_opt = convert_address_of_rec (address_of_expr.op ());
384
384
if (!bv_opt.has_value ())
385
- {
386
- bvt bv;
387
- bv.resize (bits);
388
- conversion_failed (address_of_expr, bv);
389
- return bv;
390
- }
385
+ return conversion_failed (address_of_expr);
391
386
392
387
CHECK_RETURN (bv_opt->size () == bits);
393
388
return *bv_opt;
@@ -454,9 +449,7 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
454
449
if (it->type ().id ()!=ID_unsignedbv &&
455
450
it->type ().id ()!=ID_signedbv)
456
451
{
457
- bvt failed_bv;
458
- conversion_failed (plus_expr, failed_bv);
459
- return failed_bv;
452
+ return conversion_failed (plus_expr);
460
453
}
461
454
462
455
bv_utilst::representationt rep=
@@ -492,9 +485,7 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
492
485
minus_expr.rhs ().type ().id () != ID_unsignedbv &&
493
486
minus_expr.rhs ().type ().id () != ID_signedbv)
494
487
{
495
- bvt bv;
496
- conversion_failed (minus_expr, bv);
497
- return bv;
488
+ return conversion_failed (minus_expr);
498
489
}
499
490
500
491
const unary_minus_exprt neg_op1 (minus_expr.rhs ());
You can’t perform that action at this time.
0 commit comments