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
124124 // NOLINTNEXTLINE(readability/identifiers)
125125 typedef arrayst SUB;
126126
127- void conversion_failed (const exprt &expr, bvt &bv)
128- {
129- bv=conversion_failed (expr);
130- }
131-
132127 bvt conversion_failed (const exprt &expr);
133128
134129 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)
379379
380380 auto bv_opt = convert_address_of_rec (address_of_expr.op ());
381381 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);
388383
389384 CHECK_RETURN (bv_opt->size () == bits);
390385 return *bv_opt;
@@ -452,9 +447,7 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
452447 if (it->type ().id ()!=ID_unsignedbv &&
453448 it->type ().id ()!=ID_signedbv)
454449 {
455- bvt failed_bv;
456- conversion_failed (plus_expr, failed_bv);
457- return failed_bv;
450+ return conversion_failed (plus_expr);
458451 }
459452
460453 bv_utilst::representationt rep=
@@ -485,9 +478,7 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
485478 minus_expr.rhs ().type ().id () != ID_unsignedbv &&
486479 minus_expr.rhs ().type ().id () != ID_signedbv)
487480 {
488- bvt bv;
489- conversion_failed (minus_expr, bv);
490- return bv;
481+ return conversion_failed (minus_expr);
491482 }
492483
493484 const unary_minus_exprt neg_op1 (minus_expr.rhs ());
You can’t perform that action at this time.
0 commit comments